diff --git a/tests/unittests/config/test_cc_ntp.py b/tests/unittests/config/test_cc_ntp.py index 22a5cfe46b3..c28da73a213 100644 --- a/tests/unittests/config/test_cc_ntp.py +++ b/tests/unittests/config/test_cc_ntp.py @@ -48,8 +48,6 @@ def _get_template_path(self, template_name, distro, templates_dir): return path def _generate_template(self, templates_dir, template=NTP_TEMPLATE): - # templates_dir = os.path.join(templates_dir, "templates") - # os.makedirs(templates_dir, exist_ok=True) confpath = os.path.join(templates_dir, "client.conf") template_fn = os.path.join(templates_dir, "client.conf.tmpl") util.write_file(template_fn, content=template) @@ -681,7 +679,7 @@ def test_ntp_user_provided_config_template_only( } expected_merged_cfg = { "check_exe": "chronyd", - "confpath": "{tmpdir}/client.conf".format(tmpdir=tmpdir), + "confpath": f"{tmpdir}/client.conf", "template_name": "client.conf", "template": user_template, "service_name": "chrony",