From 422e9404bcbe13226319f1699ca42e744eefb619 Mon Sep 17 00:00:00 2001 From: Sein Coray Date: Sat, 17 Feb 2024 22:46:22 +0100 Subject: [PATCH] make sure exported files get deleted after tests --- ci/apiv2/test_hashlist.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ci/apiv2/test_hashlist.py b/ci/apiv2/test_hashlist.py index b3323fee2..5ddd36d1a 100644 --- a/ci/apiv2/test_hashlist.py +++ b/ci/apiv2/test_hashlist.py @@ -48,6 +48,8 @@ def test_export_cracked_hashes(self): self.assertEqual(int(file.id), obj.id) self.assertIn('Pre-cracked_', obj.filename) + self.delete_after_test(obj) + def test_export_left_hashes(self): model_obj = self.create_test_object(file_id='001') @@ -58,6 +60,8 @@ def test_export_left_hashes(self): self.assertEqual(int(file.id), obj.id) self.assertIn('Leftlist_', obj.filename) + self.delete_after_test(obj) + def test_export_wordlist(self): model_obj = self.create_test_object(file_id='001') @@ -72,6 +76,8 @@ def test_export_wordlist(self): self.assertEqual(int(file.id), obj.id) self.assertIn('Wordlist_', obj.filename) + self.delete_after_test(obj) + def test_import_cracked_hashes(self): model_obj = self.create_test_object(file_id='001')