From 8b41c28ecf7d2c6a80a72df6419aa3edb55d8023 Mon Sep 17 00:00:00 2001 From: jcschaff Date: Thu, 15 Aug 2024 17:08:44 -0400 Subject: [PATCH] remove other files generated by unit tests --- tests/fvsolver_test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/fvsolver_test.py b/tests/fvsolver_test.py index 27e9706..1f9bffc 100644 --- a/tests/fvsolver_test.py +++ b/tests/fvsolver_test.py @@ -27,4 +27,10 @@ def test_solve() -> None: assert test_output_dir_1.exists() assert len(list(test_output_dir_1.iterdir())) > 0 + # empty directory test_output_dir_1 and test_output_dir_2 + for file in test_output_dir_1.iterdir() if test_output_dir_1.exists() else []: + file.unlink() + for file in test_output_dir_2.iterdir() if test_output_dir_2.exists() else []: + file.unlink() + print(f"retcode_1: {retcode_1}")