Skip to content

Commit b66b7bf

Browse files
Make the formatting changes
1 parent 7619dfd commit b66b7bf

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

tests/test_config.py

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ def test_default_config(self) -> None:
3535

3636
def test_arguments(self) -> None:
3737
# Arguments to the constructor are applied to the configuration.
38-
cov = coverage.Coverage(
39-
timid=True, data_file="fooey.dat", concurrency="multiprocessing")
38+
cov = coverage.Coverage(timid=True, data_file="fooey.dat", concurrency="multiprocessing")
4039
assert cov.config.timid
4140
assert not cov.config.branch
4241
assert cov.config.data_file == "fooey.dat"
@@ -105,8 +104,7 @@ def test_toml_config_file(self, filename: str) -> None:
105104
assert cov.config.precision == 3
106105
assert cov.config.html_title == "tabblo & «ταБЬℓσ»"
107106
assert cov.config.fail_under == 90.5
108-
assert cov.config.get_plugin_options("plugins.a_plugin") == {
109-
"hello": "world"}
107+
assert cov.config.get_plugin_options("plugins.a_plugin") == {"hello": "world"}
110108

111109
@pytest.mark.parametrize("filename", ["pyproject.toml", ".coveragerc.toml"])
112110
def test_toml_ints_can_be_floats(self, filename: str) -> None:
@@ -315,8 +313,7 @@ def test_environment_vars_in_config(self) -> None:
315313
cov = coverage.Coverage()
316314
assert cov.config.data_file == "hello-world.fooey"
317315
assert cov.config.branch is True
318-
assert cov.config.exclude_list == [
319-
"the_$one", "anotherZZZ", "xZZZy", "xy", "huh${X}what"]
316+
assert cov.config.exclude_list == ["the_$one", "anotherZZZ", "xZZZy", "xy", "huh${X}what"]
320317

321318
@pytest.mark.parametrize("filename", ["pyproject.toml", ".coveragerc.toml"])
322319
def test_environment_vars_in_toml_config(self, filename: str) -> None:
@@ -446,8 +443,7 @@ def expanduser(s: str) -> str:
446443
assert cov.config.lcov_output == "/Users/me/lcov/~foo.lcov"
447444
assert cov.config.xml_output == "/Users/me/somewhere/xml.out"
448445
assert cov.config.exclude_list == ["~/data.file", "~joe/html_dir"]
449-
assert cov.config.paths == {'mapping': [
450-
'/Users/me/src', '/Users/joe/source']}
446+
assert cov.config.paths == {'mapping': ['/Users/me/src', '/Users/joe/source']}
451447

452448
def test_tweaks_after_constructor(self) -> None:
453449
# set_option can be used after construction to affect the config.
@@ -604,8 +600,7 @@ def test_exclude_also(self, filename: str) -> None:
604600
)
605601
cov = coverage.Coverage()
606602

607-
expected = coverage.config.DEFAULT_EXCLUDE + \
608-
["foobar", "raise .*Error"]
603+
expected = coverage.config.DEFAULT_EXCLUDE + ["foobar", "raise .*Error"]
609604
assert cov.config.exclude_list == expected
610605

611606
def test_partial_also(self) -> None:
@@ -618,8 +613,7 @@ def test_partial_also(self) -> None:
618613
)
619614
cov = coverage.Coverage()
620615

621-
expected = coverage.config.DEFAULT_PARTIAL + \
622-
["foobar", "raise .*Error"]
616+
expected = coverage.config.DEFAULT_PARTIAL + ["foobar", "raise .*Error"]
623617
assert cov.config.partial_list == expected
624618

625619
def test_core_option(self) -> None:
@@ -817,8 +811,7 @@ def check_config_file_settings_in_other_file(self, fname: str, contents: str) ->
817811
self.assert_config_settings_are_correct(cov)
818812

819813
def test_config_file_settings_in_setupcfg(self) -> None:
820-
self.check_config_file_settings_in_other_file(
821-
"setup.cfg", self.SETUP_CFG)
814+
self.check_config_file_settings_in_other_file("setup.cfg", self.SETUP_CFG)
822815

823816
def test_config_file_settings_in_toxini(self) -> None:
824817
self.check_config_file_settings_in_other_file("tox.ini", self.TOX_INI)

0 commit comments

Comments
 (0)