@@ -18,7 +18,7 @@ def is_leap_year(year: int) -> bool:
1818@pytest .mark .parametrize ("year" , [1993 , 1992 , 1900 , 2000 ])
1919def test_scenarios_old (year : int ) -> None :
2020 verify (
21- f"is Leap { str ( year ) } : { str ( is_leap_year (year )) } " ,
21+ f"is Leap { year !s } : { is_leap_year (year )!s } " ,
2222 namer = get_scenario_namer (year ),
2323 )
2424
@@ -27,7 +27,7 @@ def test_scenarios_old(year: int) -> None:
2727@pytest .mark .parametrize ("year" , [1993 , 1992 , 1900 , 2000 ])
2828def test_scenarios (year : int ) -> None :
2929 verify (
30- f"is Leap { str ( year ) } : { str ( is_leap_year (year )) } " ,
30+ f"is Leap { year !s } : { is_leap_year (year )!s } " ,
3131 options = NamerFactory .with_parameters (year ),
3232 )
3333
@@ -39,22 +39,22 @@ def test_manual_scenarios_with_blocking() -> None:
3939 # begin-snippet: multiple-verifies-with-blocking
4040 year = 1992
4141 verify (
42- f"is Leap { str ( year ) } : { str ( is_leap_year (year )) } " ,
42+ f"is Leap { year !s } : { is_leap_year (year )!s } " ,
4343 options = NamerFactory .with_parameters (year ),
4444 )
4545 year = 1993
4646 verify (
47- f"is Leap { str ( year ) } : { str ( is_leap_year (year )) } " ,
47+ f"is Leap { year !s } : { is_leap_year (year )!s } " ,
4848 options = NamerFactory .with_parameters (year ),
4949 )
5050 year = 1900
5151 verify (
52- f"is Leap { str ( year ) } : { str ( is_leap_year (year )) } " ,
52+ f"is Leap { year !s } : { is_leap_year (year )!s } " ,
5353 options = NamerFactory .with_parameters (year ),
5454 )
5555 year = 2000
5656 verify (
57- f"is Leap { str ( year ) } : { str ( is_leap_year (year )) } " ,
57+ f"is Leap { year !s } : { is_leap_year (year )!s } " ,
5858 options = NamerFactory .with_parameters (year ),
5959 )
6060 # end-snippet
@@ -66,7 +66,7 @@ def test_manual_scenarios() -> None:
6666 gather_all_exceptions_and_throw (
6767 years ,
6868 lambda y : verify (
69- f"is Leap { str ( y ) } : { str ( is_leap_year (y )) } " ,
69+ f"is Leap { y !s } : { is_leap_year (y )!s } " ,
7070 options = NamerFactory .with_parameters (y ),
7171 ),
7272 )
0 commit comments