@@ -859,7 +859,7 @@ def test_simple_noini(self, tmpdir):
859
859
assert get_common_ancestor ([no_path .join ("a" )]) == tmpdir
860
860
861
861
@pytest .mark .parametrize ("name" , "setup.cfg tox.ini pytest.ini" .split ())
862
- def test_with_ini (self , tmpdir , name ):
862
+ def test_with_ini (self , tmpdir , name ) -> None :
863
863
inifile = tmpdir .join (name )
864
864
inifile .write ("[pytest]\n " if name != "setup.cfg" else "[tool:pytest]\n " )
865
865
@@ -874,15 +874,15 @@ def test_with_ini(self, tmpdir, name):
874
874
assert inifile == inifile
875
875
876
876
@pytest .mark .parametrize ("name" , "setup.cfg tox.ini" .split ())
877
- def test_pytestini_overrides_empty_other (self , tmpdir , name ):
877
+ def test_pytestini_overrides_empty_other (self , tmpdir , name ) -> None :
878
878
inifile = tmpdir .ensure ("pytest.ini" )
879
879
a = tmpdir .mkdir ("a" )
880
880
a .ensure (name )
881
881
rootdir , inifile , inicfg = determine_setup (None , [a ])
882
882
assert rootdir == tmpdir
883
883
assert inifile == inifile
884
884
885
- def test_setuppy_fallback (self , tmpdir ):
885
+ def test_setuppy_fallback (self , tmpdir ) -> None :
886
886
a = tmpdir .mkdir ("a" )
887
887
a .ensure ("setup.cfg" )
888
888
tmpdir .ensure ("setup.py" )
@@ -891,14 +891,14 @@ def test_setuppy_fallback(self, tmpdir):
891
891
assert inifile is None
892
892
assert inicfg == {}
893
893
894
- def test_nothing (self , tmpdir , monkeypatch ):
894
+ def test_nothing (self , tmpdir , monkeypatch ) -> None :
895
895
monkeypatch .chdir (str (tmpdir ))
896
896
rootdir , inifile , inicfg = determine_setup (None , [tmpdir ])
897
897
assert rootdir == tmpdir
898
898
assert inifile is None
899
899
assert inicfg == {}
900
900
901
- def test_with_specific_inifile (self , tmpdir ):
901
+ def test_with_specific_inifile (self , tmpdir ) -> None :
902
902
inifile = tmpdir .ensure ("pytest.ini" )
903
903
rootdir , inifile , inicfg = determine_setup (inifile , [tmpdir ])
904
904
assert rootdir == tmpdir
@@ -1039,15 +1039,15 @@ def test():
1039
1039
result = testdir .runpytest ("--override-ini" , "python_files=unittest_*.py" )
1040
1040
result .stdout .fnmatch_lines (["*1 passed in*" ])
1041
1041
1042
- def test_with_arg_outside_cwd_without_inifile (self , tmpdir , monkeypatch ):
1042
+ def test_with_arg_outside_cwd_without_inifile (self , tmpdir , monkeypatch ) -> None :
1043
1043
monkeypatch .chdir (str (tmpdir ))
1044
1044
a = tmpdir .mkdir ("a" )
1045
1045
b = tmpdir .mkdir ("b" )
1046
1046
rootdir , inifile , inicfg = determine_setup (None , [a , b ])
1047
1047
assert rootdir == tmpdir
1048
1048
assert inifile is None
1049
1049
1050
- def test_with_arg_outside_cwd_with_inifile (self , tmpdir ):
1050
+ def test_with_arg_outside_cwd_with_inifile (self , tmpdir ) -> None :
1051
1051
a = tmpdir .mkdir ("a" )
1052
1052
b = tmpdir .mkdir ("b" )
1053
1053
inifile = a .ensure ("pytest.ini" )
@@ -1056,13 +1056,13 @@ def test_with_arg_outside_cwd_with_inifile(self, tmpdir):
1056
1056
assert inifile == parsed_inifile
1057
1057
1058
1058
@pytest .mark .parametrize ("dirs" , ([], ["does-not-exist" ], ["a/does-not-exist" ]))
1059
- def test_with_non_dir_arg (self , dirs , tmpdir ):
1059
+ def test_with_non_dir_arg (self , dirs , tmpdir ) -> None :
1060
1060
with tmpdir .ensure (dir = True ).as_cwd ():
1061
1061
rootdir , inifile , inicfg = determine_setup (None , dirs )
1062
1062
assert rootdir == tmpdir
1063
1063
assert inifile is None
1064
1064
1065
- def test_with_existing_file_in_subdir (self , tmpdir ):
1065
+ def test_with_existing_file_in_subdir (self , tmpdir ) -> None :
1066
1066
a = tmpdir .mkdir ("a" )
1067
1067
a .ensure ("exist" )
1068
1068
with tmpdir .as_cwd ():
0 commit comments