Skip to content

Commit

Permalink
Cleanup test database after test
Browse files Browse the repository at this point in the history
nicobrenner committed Mar 14, 2024
1 parent 5c6822a commit 40d8c6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test_menu.py
Original file line number Diff line number Diff line change
@@ -53,6 +53,10 @@ def test_manage_resume(self, mock_getenv, mock_curses):
# Remove temp test resume file
if os.path.exists(temp_test_resume_path):
os.remove(temp_test_resume_path)

temp_test_db_path = os.getenv('DB_PATH')
if os.path.exists(temp_test_db_path):
os.remove(temp_test_db_path)

if __name__ == '__main__':
unittest.main()

0 comments on commit 40d8c6a

Please sign in to comment.