Files
cibuildwheel/test/07_ssl/cibuildwheel_test.py
T
Joe Rickerby 857aafbd3f Move the pythonpath fiddling to the test runner
instead of including it in every test
2019-04-22 23:13:34 +01:00

17 lines
572 B
Python

import subprocess, sys, os
from glob import glob
import utils
def test():
project_dir = os.path.dirname(__file__)
# this test checks that SSL is working in the build environment using
# some checks in setup.py.
# build the wheels
subprocess.check_call([sys.executable, '-m', 'cibuildwheel', project_dir])
# check that we got the right number of built wheels
expected_identifiers = utils.cibuildwheel_get_build_identifiers(project_dir)
built_wheels = glob('wheelhouse/*.whl')
assert len(built_wheels) == len(expected_identifiers)