diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-06-20 15:36:02 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-06-20 15:36:02 -0500 |
| commit | dcc86d388f5305b8d2c16a6aaf8e5031be358c02 (patch) | |
| tree | 28d0941c6c8bbe51a50aa35517b494c46ddf7708 | |
| parent | Add more type hints to ConfigFile and lint all files (diff) | |
| download | config-file-dcc86d388f5305b8d2c16a6aaf8e5031be358c02.zip | |
Convert string to f-string in test
| -rw-r--r-- | tests/test_config_file.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_config_file.py b/tests/test_config_file.py index 38cdf38..861b169 100644 --- a/tests/test_config_file.py +++ b/tests/test_config_file.py @@ -147,7 +147,7 @@ def test_that_config_file_can_get( def test_that_config_file_can_find_sections_and_keys( tmpdir, file_extension, file_contents, section_key, expected_result ): - config_path = tmpdir / "config.{}".format(file_extension) + config_path = tmpdir / f"config.{file_extension}" config_path.write_text(file_contents, encoding="utf-8") config = ConfigFile(str(config_path)) assert config.has(section_key) == expected_result |