@@ -159,7 +159,7 @@ def func(x, y):
159
159
("x" , "y" ), [("abc" , "def" ), ("ghi" , "jkl" )], ids = ["one" ]
160
160
)
161
161
162
- @pytest .mark .issue510
162
+ @pytest .mark .issue ( 510 )
163
163
def test_parametrize_empty_list (self ):
164
164
def func (y ):
165
165
pass
@@ -262,7 +262,7 @@ def test_function():
262
262
for val , expected in values :
263
263
assert _idval (val , "a" , 6 , None , item = None , config = None ) == expected
264
264
265
- @pytest .mark .issue250
265
+ @pytest .mark .issue ( 250 )
266
266
def test_idmaker_autoname (self ):
267
267
from _pytest .python import idmaker
268
268
@@ -356,7 +356,7 @@ def test_idmaker_enum(self):
356
356
result = idmaker (("a" , "b" ), [pytest .param (e .one , e .two )])
357
357
assert result == ["Foo.one-Foo.two" ]
358
358
359
- @pytest .mark .issue351
359
+ @pytest .mark .issue ( 351 )
360
360
def test_idmaker_idfn (self ):
361
361
from _pytest .python import idmaker
362
362
@@ -375,7 +375,7 @@ def ids(val):
375
375
)
376
376
assert result == ["10.0-IndexError()" , "20-KeyError()" , "three-b2" ]
377
377
378
- @pytest .mark .issue351
378
+ @pytest .mark .issue ( 351 )
379
379
def test_idmaker_idfn_unique_names (self ):
380
380
from _pytest .python import idmaker
381
381
@@ -459,7 +459,7 @@ def test_idmaker_with_ids_unique_names(self):
459
459
)
460
460
assert result == ["a0" , "a1" , "b0" , "c" , "b1" ]
461
461
462
- @pytest .mark .issue714
462
+ @pytest .mark .issue ( 714 )
463
463
def test_parametrize_indirect (self ):
464
464
def func (x , y ):
465
465
pass
@@ -473,7 +473,7 @@ def func(x, y):
473
473
assert metafunc ._calls [0 ].params == dict (x = 1 , y = 2 )
474
474
assert metafunc ._calls [1 ].params == dict (x = 1 , y = 3 )
475
475
476
- @pytest .mark .issue714
476
+ @pytest .mark .issue ( 714 )
477
477
def test_parametrize_indirect_list (self ):
478
478
def func (x , y ):
479
479
pass
@@ -483,7 +483,7 @@ def func(x, y):
483
483
assert metafunc ._calls [0 ].funcargs == dict (y = "b" )
484
484
assert metafunc ._calls [0 ].params == dict (x = "a" )
485
485
486
- @pytest .mark .issue714
486
+ @pytest .mark .issue ( 714 )
487
487
def test_parametrize_indirect_list_all (self ):
488
488
def func (x , y ):
489
489
pass
@@ -493,7 +493,7 @@ def func(x, y):
493
493
assert metafunc ._calls [0 ].funcargs == {}
494
494
assert metafunc ._calls [0 ].params == dict (x = "a" , y = "b" )
495
495
496
- @pytest .mark .issue714
496
+ @pytest .mark .issue ( 714 )
497
497
def test_parametrize_indirect_list_empty (self ):
498
498
def func (x , y ):
499
499
pass
@@ -503,7 +503,7 @@ def func(x, y):
503
503
assert metafunc ._calls [0 ].funcargs == dict (x = "a" , y = "b" )
504
504
assert metafunc ._calls [0 ].params == {}
505
505
506
- @pytest .mark .issue714
506
+ @pytest .mark .issue ( 714 )
507
507
def test_parametrize_indirect_list_functional (self , testdir ):
508
508
"""
509
509
Test parametrization with 'indirect' parameter applied on
@@ -532,7 +532,7 @@ def test_simple(x,y):
532
532
result = testdir .runpytest ("-v" )
533
533
result .stdout .fnmatch_lines (["*test_simple*a-b*" , "*1 passed*" ])
534
534
535
- @pytest .mark .issue714
535
+ @pytest .mark .issue ( 714 )
536
536
def test_parametrize_indirect_list_error (self , testdir ):
537
537
def func (x , y ):
538
538
pass
@@ -541,7 +541,7 @@ def func(x, y):
541
541
with pytest .raises (pytest .fail .Exception ):
542
542
metafunc .parametrize ("x, y" , [("a" , "b" )], indirect = ["x" , "z" ])
543
543
544
- @pytest .mark .issue714
544
+ @pytest .mark .issue ( 714 )
545
545
def test_parametrize_uses_no_fixture_error_indirect_false (self , testdir ):
546
546
"""The 'uses no fixture' error tells the user at collection time
547
547
that the parametrize data they've set up doesn't correspond to the
@@ -560,7 +560,7 @@ def test_simple(x):
560
560
result = testdir .runpytest ("--collect-only" )
561
561
result .stdout .fnmatch_lines (["*uses no argument 'y'*" ])
562
562
563
- @pytest .mark .issue714
563
+ @pytest .mark .issue ( 714 )
564
564
def test_parametrize_uses_no_fixture_error_indirect_true (self , testdir ):
565
565
testdir .makepyfile (
566
566
"""
@@ -580,7 +580,7 @@ def test_simple(x):
580
580
result = testdir .runpytest ("--collect-only" )
581
581
result .stdout .fnmatch_lines (["*uses no fixture 'y'*" ])
582
582
583
- @pytest .mark .issue714
583
+ @pytest .mark .issue ( 714 )
584
584
def test_parametrize_indirect_uses_no_fixture_error_indirect_string (self , testdir ):
585
585
testdir .makepyfile (
586
586
"""
@@ -597,7 +597,7 @@ def test_simple(x):
597
597
result = testdir .runpytest ("--collect-only" )
598
598
result .stdout .fnmatch_lines (["*uses no fixture 'y'*" ])
599
599
600
- @pytest .mark .issue714
600
+ @pytest .mark .issue ( 714 )
601
601
def test_parametrize_indirect_uses_no_fixture_error_indirect_list (self , testdir ):
602
602
testdir .makepyfile (
603
603
"""
@@ -614,7 +614,7 @@ def test_simple(x):
614
614
result = testdir .runpytest ("--collect-only" )
615
615
result .stdout .fnmatch_lines (["*uses no fixture 'y'*" ])
616
616
617
- @pytest .mark .issue714
617
+ @pytest .mark .issue ( 714 )
618
618
def test_parametrize_argument_not_in_indirect_list (self , testdir ):
619
619
testdir .makepyfile (
620
620
"""
@@ -1201,7 +1201,7 @@ def test_foo(x):
1201
1201
reprec = testdir .runpytest ()
1202
1202
reprec .assert_outcomes (passed = 4 )
1203
1203
1204
- @pytest .mark .issue463
1204
+ @pytest .mark .issue ( 463 )
1205
1205
@pytest .mark .parametrize ("attr" , ["parametrise" , "parameterize" , "parameterise" ])
1206
1206
def test_parametrize_misspelling (self , testdir , attr ):
1207
1207
testdir .makepyfile (
@@ -1386,7 +1386,7 @@ def pytest_generate_tests(metafunc):
1386
1386
assert output .count ("preparing foo-3" ) == 1
1387
1387
1388
1388
1389
- @pytest .mark .issue308
1389
+ @pytest .mark .issue ( 308 )
1390
1390
class TestMarkersWithParametrization (object ):
1391
1391
def test_simple_mark (self , testdir ):
1392
1392
s = """
@@ -1575,7 +1575,7 @@ def test_increment(n, expected):
1575
1575
reprec = testdir .inline_run (SHOW_PYTEST_WARNINGS_ARG )
1576
1576
reprec .assertoutcome (passed = 2 , skipped = 2 )
1577
1577
1578
- @pytest .mark .issue290
1578
+ @pytest .mark .issue ( 290 )
1579
1579
def test_parametrize_ID_generation_string_int_works (self , testdir ):
1580
1580
testdir .makepyfile (
1581
1581
"""
0 commit comments