File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
13711371class TestLoadScope :
You can’t perform that action at this time.
0 commit comments