Run each test using a temporary directory (#217)

This commit is contained in:
Matthieu Darbois
2019-11-20 22:20:53 +01:00
committed by GitHub
parent 2b62eef9e7
commit 09e72800c6
10 changed files with 50 additions and 47 deletions
+1 -2
View File
@@ -6,11 +6,10 @@ project_dir = os.path.dirname(__file__)
def test():
# build the wheels
utils.cibuildwheel_run(project_dir)
actual_wheels = utils.cibuildwheel_run(project_dir)
# check that the expected wheels are produced
expected_wheels = utils.expected_wheels('spam', '0.1.0')
actual_wheels = os.listdir('wheelhouse')
assert set(actual_wheels) == set(expected_wheels)