@@ -13,7 +13,7 @@ def fork_map():
13
13
return {fork .name (): fork for fork in get_forks ()}
14
14
15
15
16
- def test_no_options_no_validity_marker (pytester ):
16
+ def test_no_options_no_validity_marker (pytester : pytest . Pytester ):
17
17
"""
18
18
Test test parametrization with:
19
19
- no fork command-line options,
@@ -61,7 +61,7 @@ def test_all_forks({StateTest.pytest_parameter_name()}):
61
61
62
62
63
63
@pytest .mark .parametrize ("fork" , ["London" , "Paris" ])
64
- def test_from_london_option_no_validity_marker (pytester , fork_map , fork ):
64
+ def test_from_london_option_no_validity_marker (pytester : pytest . Pytester , fork_map , fork ):
65
65
"""
66
66
Test test parametrization with:
67
67
- --from London command-line option,
@@ -105,7 +105,7 @@ def test_all_forks({StateTest.pytest_parameter_name()}):
105
105
)
106
106
107
107
108
- def test_from_london_until_shanghai_option_no_validity_marker (pytester , fork_map ):
108
+ def test_from_london_until_shanghai_option_no_validity_marker (pytester : pytest . Pytester , fork_map ):
109
109
"""
110
110
Test test parametrization with:
111
111
- --from London command-line option,
@@ -122,7 +122,7 @@ def test_all_forks({StateTest.pytest_parameter_name()}):
122
122
)
123
123
pytester .copy_example (name = "src/cli/pytest_commands/pytest_ini_files/pytest-fill.ini" )
124
124
result = pytester .runpytest (
125
- "-c" , "pytest-fill.ini" , "-v" , "--from" , "London" , "--until" , "Shanghai "
125
+ "-c" , "pytest-fill.ini" , "-v" , "--from" , "London" , "--until" , "shanghai "
126
126
)
127
127
forks_under_test = forks_from_until (fork_map ["London" ], fork_map ["Shanghai" ])
128
128
expected_passed = len (forks_under_test ) * len (StateTest .supported_fixture_formats )
@@ -153,11 +153,11 @@ def test_all_forks({StateTest.pytest_parameter_name()}):
153
153
)
154
154
155
155
156
- def test_from_merge_until_merge_option_no_validity_marker (pytester , fork_map ):
156
+ def test_from_paris_until_paris_option_no_validity_marker (pytester : pytest . Pytester , fork_map ):
157
157
"""
158
158
Test test parametrization with:
159
- - --from Merge command-line option,
160
- - --until Merge command-line option,
159
+ - --from Paris command-line option,
160
+ - --until Paris command-line option,
161
161
- no fork validity marker.
162
162
"""
163
163
pytester .makepyfile (
@@ -170,11 +170,13 @@ def test_all_forks({StateTest.pytest_parameter_name()}):
170
170
)
171
171
pytester .copy_example (name = "src/cli/pytest_commands/pytest_ini_files/pytest-fill.ini" )
172
172
result = pytester .runpytest (
173
- "-c" , "pytest-fill.ini" , "-v" , "--from" , "Merge " , "--until" , "Merge "
173
+ "-c" , "pytest-fill.ini" , "-v" , "--from" , "paris " , "--until" , "paris "
174
174
)
175
175
forks_under_test = forks_from_until (fork_map ["Paris" ], fork_map ["Paris" ])
176
176
expected_passed = len (forks_under_test ) * len (StateTest .supported_fixture_formats )
177
- stdout = "\n " .join (result .stdout .lines )
177
+ stdout : str = "\n " .join (result .stdout .lines )
178
+ assert len (stdout ) > 0 , "stdout is empty string"
179
+
178
180
for fork in forks_under_test :
179
181
for fixture_format in StateTest .supported_fixture_formats :
180
182
if isinstance (fixture_format , LabeledFixtureFormat ):
0 commit comments