11# 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
43
54# 3rd party
65import dom_toml
6968
7069
7170@pytest .fixture ()
72- def custom_entry_point (monkeypatch ):
71+ def custom_entry_point (monkeypatch ) -> Iterator :
7372 with TemporaryPathPlus () as tmpdir :
7473 monkeypatch .syspath_prepend (str (tmpdir ))
7574
@@ -114,6 +113,7 @@ def test_snippet_fmt(
114113 advanced_file_regression .check_file (tmp_pathplus / filename )
115114 check_out (capsys .readouterr (), tmp_pathplus , advanced_data_regression )
116115
116+ @pytest .mark .usefixtures ("custom_entry_point" )
117117 @filenames
118118 def test_snippet_fmt_custom_entry_point (
119119 self ,
@@ -122,7 +122,6 @@ def test_snippet_fmt_custom_entry_point(
122122 advanced_file_regression : AdvancedFileRegressionFixture ,
123123 advanced_data_regression : AdvancedDataRegressionFixture ,
124124 capsys ,
125- custom_entry_point
126125 ):
127126
128127 languages = {"python3" : {"reformat" : True }}
@@ -191,7 +190,7 @@ def check_out(
191190 result : Union [Result , CaptureResult [str ]],
192191 tmpdir : PathPlus ,
193192 advanced_data_regression : AdvancedDataRegressionFixture ,
194- ):
193+ ) -> None :
195194
196195 if hasattr (result , "stdout" ):
197196 stdout = result .stdout
0 commit comments