diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_cmdline.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index 4c0776fb..aa7f3831 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -817,24 +817,24 @@ class CmdLineWithFilesTest(BaseCmdLineTest): data.write() self.command_line("debug data") - assert self.stdout() == textwrap.dedent("""\ + assert self.stdout() == textwrap.dedent(f"""\ -- data ------------------------------------------------------ - path: FILENAME + path: {data.data_filename()} has_arcs: False 2 files: file1.py: 17 lines [a_plugin] file2.py: 23 lines - """).replace("FILENAME", data.data_filename()) + """) def test_debug_data_with_no_data(self): data = CoverageData() self.command_line("debug data") - assert self.stdout() == textwrap.dedent("""\ + assert self.stdout() == textwrap.dedent(f"""\ -- data ------------------------------------------------------ - path: FILENAME + path: {data.data_filename()} No data collected - """).replace("FILENAME", data.data_filename()) + """) class CmdLineStdoutTest(BaseCmdLineTest): |