From e08bb5944e50b1578b87af0de9852c0fc4007b97 Mon Sep 17 00:00:00 2001 From: Eric Joanis Date: Thu, 30 Jan 2025 16:58:40 -0500 Subject: [PATCH] fix(tests): clean up temporary file created by unit tests --- everyvoice/tests/test_cli.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/everyvoice/tests/test_cli.py b/everyvoice/tests/test_cli.py index 174bd2b7..fcb17be8 100644 --- a/everyvoice/tests/test_cli.py +++ b/everyvoice/tests/test_cli.py @@ -271,10 +271,9 @@ def test_evaluate(self): dir_result.stdout, "should report metrics in terms of averages", ) - self.assertTrue( - (self.data_dir / "lj" / "wavs" / "evaluation.json").exists(), - "should print out results to a file", - ) + evaluation_output = self.data_dir / "lj" / "wavs" / "evaluation.json" + self.assertTrue(evaluation_output.exists(), "should print results to a file") + evaluation_output.unlink() def test_inspect_checkpoint_help(self): with silence_c_stderr():