diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-11-12 08:27:03 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-11-12 18:00:31 +0100 |
commit | 2146e3dd4e42639fe6a7cd610d81dd20b0caba9f (patch) | |
tree | 2d2e019ee53b1902e688ef414829623e43bdfe53 | |
parent | 476ce6b3240b1c0c166f47ee3718b10251110aec (diff) | |
download | pylint-git-2146e3dd4e42639fe6a7cd610d81dd20b0caba9f.tar.gz |
Move test_can_read_toml_rich_types to functional framework
-rw-r--r-- | tests/config/functional/toml/rich_types.result.json | 7 | ||||
-rw-r--r-- | tests/config/functional/toml/rich_types.toml | 11 | ||||
-rw-r--r-- | tests/config/test_config.py | 20 |
3 files changed, 18 insertions, 20 deletions
diff --git a/tests/config/functional/toml/rich_types.result.json b/tests/config/functional/toml/rich_types.result.json new file mode 100644 index 000000000..21938c319 --- /dev/null +++ b/tests/config/functional/toml/rich_types.result.json @@ -0,0 +1,7 @@ +{ + "functional_append": { + "disable": [["logging-not-lazy"], ["logging-format-interpolation"]] + }, + "jobs": 10, + "reports": true +} diff --git a/tests/config/functional/toml/rich_types.toml b/tests/config/functional/toml/rich_types.toml new file mode 100644 index 000000000..91178390e --- /dev/null +++ b/tests/config/functional/toml/rich_types.toml @@ -0,0 +1,11 @@ +# Check that we can read a TOML file where lists, integers and +# booleans are expressed as such (and not as strings), using TOML +# type system. + +[tool.pylint."messages control"] +disable = [ + "logging-not-lazy", + "logging-format-interpolation", +] +jobs = 10 +reports = true diff --git a/tests/config/test_config.py b/tests/config/test_config.py index 723d4636e..47febda32 100644 --- a/tests/config/test_config.py +++ b/tests/config/test_config.py @@ -46,26 +46,6 @@ def check_configuration_file_reader( assert bool(runner.linter.config.reports) == expected_reports_truthey -def test_can_read_toml_rich_types(tmp_path: Path) -> None: - # Check that we can read a TOML file where lists, integers and - # booleans are expressed as such (and not as strings), using TOML - # type system. - config_file = tmp_path / "pyproject.toml" - config_file.write_text( - """ -[tool.pylint."messages control"] -disable = [ - "logging-not-lazy", - "logging-format-interpolation", -] -jobs = 10 -reports = true -""" - ) - run = get_runner_from_config_file(config_file) - check_configuration_file_reader(run) - - def test_can_read_toml_env_variable(tmp_path: Path) -> None: """We can read and open a properly formatted toml file.""" config_file = tmp_path / "pyproject.toml" |