Wrap the sample build output in a fold group

This commit is contained in:
Joe Rickerby
2020-11-13 15:22:43 +00:00
parent 8108deacfe
commit 5e99d962f5
+6
View File
@@ -1,3 +1,4 @@
from cibuildwheel.logger import Logger
import textwrap
import platform
from . import test_projects
@@ -20,8 +21,13 @@ def test(tmp_path, capfd):
# build the wheels, and let the output passthrough to the caller, so
# we can see how it looks
with capfd.disabled():
logger = Logger()
logger._start_fold_group('Sample build')
actual_wheels = utils.cibuildwheel_run(project_dir)
logger._end_fold_group()
# check that the expected wheels are produced
expected_wheels = utils.expected_wheels('spam', '0.1.0')
assert set(actual_wheels) == set(expected_wheels)