Skip to content

Commit e32ca3f

Browse files
committed
Fixed test discoverability and pre-commit findings in acceptance test TestIsoScope.test_multi_scope_with_insufficient_fence.
1 parent 617dd47 commit e32ca3f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

testing/acceptance_test.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,16 +1330,16 @@ def test(i):
13301330
"""
13311331
test_file2 = """
13321332
import pytest
1333-
class FenceA:
1333+
class TestFenceA:
13341334
def test(self):
13351335
pass
13361336
1337-
class FenceB:
1338-
# Two tests are only enough for one fence due to min-2 scope
1337+
class TestFenceB:
1338+
# Two tests are only enough for one fence due to min-2 scope
13391339
# tests per worker rule
13401340
def test1(self):
13411341
pass
1342-
def test1(self):
1342+
def test2(self):
13431343
pass
13441344
"""
13451345
pytester.makepyfile(test_a=test_file1, fence_tests=test_file2)
@@ -1362,10 +1362,10 @@ def test1(self):
13621362
)
13631363

13641364
assert len(counts_by_worker_fence_a) == 1
1365-
assert list(counts_by_worker_fence_a.values())[0] == 1
1365+
assert next(iter(counts_by_worker_fence_a.values())) == 1
13661366

13671367
assert len(counts_by_worker_fence_b) == 1
1368-
assert list(counts_by_worker_fence_b.values())[0] == 2
1368+
assert next(iter(counts_by_worker_fence_b.values())) == 2
13691369

13701370

13711371
class TestLoadScope:

0 commit comments

Comments
 (0)