Skip to content

Commit b865e9d

Browse files
committed
Work in progress on acceptance test TestIsoScope.test_distributed_setup_teardown_coordination.
1 parent c649eb5 commit b865e9d

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

testing/acceptance_test.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,11 +1291,14 @@ class TestScopeB(TestScopeA):
12911291
pytester.makepyfile(test_a=test_file, test_b=test_file)
12921292
result = pytester.runpytest("-n2", "--dist=isoscope", "-v")
12931293

1294-
print("ZZZ outlines")
1295-
pprint.pprint(result.outlines, indent=4)
1296-
print("ZZZ errlines")
1297-
pprint.pprint(result.errlines, indent=4)
1298-
assert False
1294+
assert sum(
1295+
get_workers_and_test_count_by_prefix(
1296+
"test_a.py::TestScopeA", result.outlines).values()
1297+
) == 5
1298+
assert sum(
1299+
get_workers_and_test_count_by_prefix(
1300+
"test_a.py::TestScopeB", result.outlines).values()
1301+
) == 5
12991302

13001303
def test_by_module(self, pytester: pytest.Pytester) -> None:
13011304
test_file = """

0 commit comments

Comments
 (0)