1
1
# stdlib
2
- import re
3
- from typing import Dict , List , Union , no_type_check
2
+ from typing import Dict , Iterator , List , Union , no_type_check
4
3
5
4
# 3rd party
6
5
import dom_toml
69
68
70
69
71
70
@pytest .fixture ()
72
- def custom_entry_point (monkeypatch ):
71
+ def custom_entry_point (monkeypatch ) -> Iterator :
73
72
with TemporaryPathPlus () as tmpdir :
74
73
monkeypatch .syspath_prepend (str (tmpdir ))
75
74
@@ -114,6 +113,7 @@ def test_snippet_fmt(
114
113
advanced_file_regression .check_file (tmp_pathplus / filename )
115
114
check_out (capsys .readouterr (), tmp_pathplus , advanced_data_regression )
116
115
116
+ @pytest .mark .usefixtures ("custom_entry_point" )
117
117
@filenames
118
118
def test_snippet_fmt_custom_entry_point (
119
119
self ,
@@ -122,7 +122,6 @@ def test_snippet_fmt_custom_entry_point(
122
122
advanced_file_regression : AdvancedFileRegressionFixture ,
123
123
advanced_data_regression : AdvancedDataRegressionFixture ,
124
124
capsys ,
125
- custom_entry_point
126
125
):
127
126
128
127
languages = {"python3" : {"reformat" : True }}
@@ -191,7 +190,7 @@ def check_out(
191
190
result : Union [Result , CaptureResult [str ]],
192
191
tmpdir : PathPlus ,
193
192
advanced_data_regression : AdvancedDataRegressionFixture ,
194
- ):
193
+ ) -> None :
195
194
196
195
if hasattr (result , "stdout" ):
197
196
stdout = result .stdout
0 commit comments