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):
1330
1330
"""
1331
1331
test_file2 = """
1332
1332
import pytest
1333
- class FenceA :
1333
+ class TestFenceA :
1334
1334
def test(self):
1335
1335
pass
1336
1336
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
1339
1339
# tests per worker rule
1340
1340
def test1(self):
1341
1341
pass
1342
- def test1 (self):
1342
+ def test2 (self):
1343
1343
pass
1344
1344
"""
1345
1345
pytester .makepyfile (test_a = test_file1 , fence_tests = test_file2 )
@@ -1362,10 +1362,10 @@ def test1(self):
1362
1362
)
1363
1363
1364
1364
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
1366
1366
1367
1367
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
1369
1369
1370
1370
1371
1371
class TestLoadScope :
You can’t perform that action at this time.
0 commit comments