From 5e99d962f50a84ae561efdc53c1267d9816c04fd Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Fri, 13 Nov 2020 15:22:43 +0000 Subject: [PATCH] Wrap the sample build output in a fold group --- test/test_0_basic.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_0_basic.py b/test/test_0_basic.py index cd17cef8..e4bcbc19 100644 --- a/test/test_0_basic.py +++ b/test/test_0_basic.py @@ -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)