Add explicit sample build test to keep the first test simple
This commit is contained in:
+18
-10
@@ -14,7 +14,19 @@ basic_project = test_projects.new_c_project(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def test(tmp_path, capfd):
|
def test(tmp_path):
|
||||||
|
project_dir = tmp_path / 'project'
|
||||||
|
basic_project.generate(project_dir)
|
||||||
|
|
||||||
|
# build the wheels
|
||||||
|
actual_wheels = utils.cibuildwheel_run(project_dir)
|
||||||
|
|
||||||
|
# check that the expected wheels are produced
|
||||||
|
expected_wheels = utils.expected_wheels('spam', '0.1.0')
|
||||||
|
assert set(actual_wheels) == set(expected_wheels)
|
||||||
|
|
||||||
|
|
||||||
|
def test_sample_build(tmp_path, capfd):
|
||||||
project_dir = tmp_path / 'project'
|
project_dir = tmp_path / 'project'
|
||||||
basic_project.generate(project_dir)
|
basic_project.generate(project_dir)
|
||||||
|
|
||||||
@@ -22,15 +34,11 @@ def test(tmp_path, capfd):
|
|||||||
# we can see how it looks
|
# we can see how it looks
|
||||||
with capfd.disabled():
|
with capfd.disabled():
|
||||||
logger = Logger()
|
logger = Logger()
|
||||||
logger._start_fold_group('Sample build')
|
logger.step('test_sample_build')
|
||||||
|
try:
|
||||||
actual_wheels = utils.cibuildwheel_run(project_dir)
|
utils.cibuildwheel_run(project_dir)
|
||||||
|
finally:
|
||||||
logger._end_fold_group()
|
logger.step_end()
|
||||||
|
|
||||||
# check that the expected wheels are produced
|
|
||||||
expected_wheels = utils.expected_wheels('spam', '0.1.0')
|
|
||||||
assert set(actual_wheels) == set(expected_wheels)
|
|
||||||
|
|
||||||
|
|
||||||
def test_build_identifiers(tmp_path):
|
def test_build_identifiers(tmp_path):
|
||||||
|
|||||||
Reference in New Issue
Block a user