22
22
23
23
24
24
class TestVenvConfig :
25
-
26
25
def test_config_parsing_minimal (self , tmpdir , newconfig ):
27
26
config = newconfig (
28
27
[],
@@ -172,7 +171,6 @@ def test_is_same_dep(self):
172
171
173
172
174
173
class TestConfigPlatform :
175
-
176
174
def test_config_parse_platform (self , newconfig ):
177
175
config = newconfig (
178
176
[],
@@ -223,7 +221,6 @@ def test_config_parse_platform_with_factors(self, newconfig, plat):
223
221
224
222
225
223
class TestConfigPackage :
226
-
227
224
def test_defaults (self , tmpdir , newconfig ):
228
225
config = newconfig ([], "" )
229
226
assert config .setupdir .realpath () == tmpdir .realpath ()
@@ -256,7 +253,6 @@ def test_project_paths(self, tmpdir, newconfig):
256
253
257
254
258
255
class TestParseconfig :
259
-
260
256
def test_search_parents (self , tmpdir ):
261
257
b = tmpdir .mkdir ("a" ).mkdir ("b" )
262
258
toxinipath = tmpdir .ensure ("tox.ini" )
@@ -293,7 +289,6 @@ def test_get_homedir(monkeypatch):
293
289
294
290
295
291
class TestGetcontextname :
296
-
297
292
def test_blank (self , monkeypatch ):
298
293
monkeypatch .setattr (os , "environ" , {})
299
294
assert getcontextname () is None
@@ -436,7 +431,6 @@ def test_regression_issue595(self, newconfig):
436
431
437
432
438
433
class TestIniParser :
439
-
440
434
def test_getstring_single (self , newconfig ):
441
435
config = newconfig (
442
436
"""
@@ -705,7 +699,9 @@ def test_argvlist_quoted_posargs(self, newconfig):
705
699
assert reader .getargvlist ("key1" ) == []
706
700
x = reader .getargvlist ("key2" )
707
701
expected_deps = [
708
- ["cmd1" , "--foo-args=foo bar" ], ["cmd2" , "-f" , "foo bar" ], ["cmd3" , "-f" , "foo" , "bar" ]
702
+ ["cmd1" , "--foo-args=foo bar" ],
703
+ ["cmd2" , "-f" , "foo bar" ],
704
+ ["cmd3" , "-f" , "foo" , "bar" ],
709
705
]
710
706
assert x == expected_deps
711
707
@@ -816,7 +812,6 @@ def test_getbool(self, newconfig):
816
812
817
813
818
814
class TestIniParserPrefix :
819
-
820
815
def test_basic_section_access (self , newconfig ):
821
816
config = newconfig (
822
817
"""
@@ -873,7 +868,6 @@ def test_other_section_substitution(self, newconfig):
873
868
874
869
875
870
class TestConfigTestEnv :
876
-
877
871
def test_commentchars_issue33 (self , newconfig ):
878
872
config = newconfig (
879
873
"""
@@ -1723,7 +1717,6 @@ def test_ignore_outcome(self, newconfig):
1723
1717
1724
1718
1725
1719
class TestGlobalOptions :
1726
-
1727
1720
def test_notest (self , newconfig ):
1728
1721
config = newconfig ([], "" )
1729
1722
assert not config .option .notest
@@ -1905,7 +1898,6 @@ def test_defaultenv_partial_override(self, newconfig):
1905
1898
1906
1899
1907
1900
class TestHashseedOption :
1908
-
1909
1901
def _get_envconfigs (self , newconfig , args = None , tox_ini = None , make_hashseed = None ):
1910
1902
if args is None :
1911
1903
args = []
@@ -2023,7 +2015,6 @@ def test_setenv_in_one_testenv(self, newconfig):
2023
2015
2024
2016
2025
2017
class TestSetenv :
2026
-
2027
2018
def test_getdict_lazy (self , newconfig , monkeypatch ):
2028
2019
monkeypatch .setenv ("X" , "2" )
2029
2020
config = newconfig (
@@ -2196,7 +2187,6 @@ def test_setenv_cross_section_mixed(self, monkeypatch, newconfig):
2196
2187
2197
2188
2198
2189
class TestIndexServer :
2199
-
2200
2190
def test_indexserver (self , newconfig ):
2201
2191
config = newconfig (
2202
2192
"""
@@ -2248,7 +2238,6 @@ def test_multiple_homedir_relative_local_indexservers(self, newconfig):
2248
2238
2249
2239
2250
2240
class TestConfigConstSubstitutions :
2251
-
2252
2241
@pytest .mark .parametrize ("pathsep" , [":" , ";" ])
2253
2242
def test_replace_pathsep_unix (self , monkeypatch , newconfig , pathsep ):
2254
2243
monkeypatch .setattr ("os.pathsep" , pathsep )
@@ -2273,7 +2262,6 @@ def test_pathsep_regex(self):
2273
2262
2274
2263
2275
2264
class TestParseEnv :
2276
-
2277
2265
def test_parse_recreate (self , newconfig ):
2278
2266
inisource = ""
2279
2267
config = newconfig ([], inisource )
@@ -2291,7 +2279,6 @@ def test_parse_recreate(self, newconfig):
2291
2279
2292
2280
2293
2281
class TestCmdInvocation :
2294
-
2295
2282
def test_help (self , cmd ):
2296
2283
result = cmd ("-h" )
2297
2284
assert not result .ret
@@ -2310,9 +2297,7 @@ def test_version_no_plugins(self):
2310
2297
assert "registered plugins:" not in version_info
2311
2298
2312
2299
def test_version_with_normal_plugin (self , monkeypatch ):
2313
-
2314
2300
def fake_normal_plugin_distinfo ():
2315
-
2316
2301
class MockModule :
2317
2302
__file__ = "some-file"
2318
2303
@@ -2331,11 +2316,8 @@ class MockEggInfo:
2331
2316
assert "1.0" in version_info
2332
2317
2333
2318
def test_version_with_fileless_module (self , monkeypatch ):
2334
-
2335
2319
def fake_no_file_plugin_distinfo ():
2336
-
2337
2320
class MockModule :
2338
-
2339
2321
def __repr__ (self ):
2340
2322
return "some-repr"
2341
2323
@@ -2463,7 +2445,7 @@ def test_listenvs_all_verbose_description(self, cmd, initproj):
2463
2445
"additional environments:" ,
2464
2446
"docs -> generate documentation" ,
2465
2447
]
2466
- assert result .outlines [- len (expected ):] == expected
2448
+ assert result .outlines [- len (expected ) :] == expected
2467
2449
2468
2450
def test_listenvs_all_verbose_description_no_additional_environments (self , cmd , initproj ):
2469
2451
initproj (
@@ -2477,7 +2459,9 @@ def test_listenvs_all_verbose_description_no_additional_environments(self, cmd,
2477
2459
)
2478
2460
result = cmd ("-av" )
2479
2461
expected = [
2480
- "default environments:" , "py27 -> [no description]" , "py36 -> [no description]"
2462
+ "default environments:" ,
2463
+ "py27 -> [no description]" ,
2464
+ "py36 -> [no description]" ,
2481
2465
]
2482
2466
assert result .out .splitlines ()[- 3 :] == expected
2483
2467
assert "additional environments" not in result .out
@@ -2572,7 +2556,6 @@ def test_env_spec(cmdline, envlist):
2572
2556
2573
2557
2574
2558
class TestCommandParser :
2575
-
2576
2559
def test_command_parser_for_word (self ):
2577
2560
p = CommandParser ("word" )
2578
2561
assert list (p .words ()) == ["word" ]
@@ -2655,7 +2638,17 @@ def test_command_parsing_for_issue_10(self):
2655
2638
p = CommandParser (cmd )
2656
2639
parsed = list (p .words ())
2657
2640
expected = [
2658
- "nosetests" , " " , "-v" , " " , "-a" , " " , "!deferred" , " " , "--with-doctest" , " " , "[]"
2641
+ "nosetests" ,
2642
+ " " ,
2643
+ "-v" ,
2644
+ " " ,
2645
+ "-a" ,
2646
+ " " ,
2647
+ "!deferred" ,
2648
+ " " ,
2649
+ "--with-doctest" ,
2650
+ " " ,
2651
+ "[]" ,
2659
2652
]
2660
2653
assert parsed == expected
2661
2654
0 commit comments