aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-06-20 15:36:02 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2020-06-20 15:56:19 -0500
commita63105f958b9519a25d6c75b9b772d952efce9ff (patch)
treee4cdf223905b56322b84342cbea67c5a9e05359e /tests
parentAdd more type hints to ConfigFile and lint all files (diff)
downloadconfig-file-a63105f958b9519a25d6c75b9b772d952efce9ff.zip
Convert string to f-string in test
Diffstat (limited to 'tests')
-rw-r--r--tests/test_config_file.py2
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