From 7fb39171f4fa2e37c605bee90779c839b5c59e97 Mon Sep 17 00:00:00 2001 From: guille Date: Tue, 8 Aug 2023 12:01:21 -0400 Subject: [PATCH] correct unittest --- tests/test_db_factory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_db_factory.py b/tests/test_db_factory.py index c1d65e5c..94b599a7 100644 --- a/tests/test_db_factory.py +++ b/tests/test_db_factory.py @@ -114,7 +114,7 @@ class Control: ) self._user_id = self._database.create_user('city_layers', self._application_id, 'city_layers', UserRoles.Admin) - self._pickle_path = 'tests_data/pickle_path.bz2' + self._pickle_path = Path('tests_data/pickle_path.bz2').resolve() @property def database(self): @@ -183,7 +183,6 @@ TestDBFactory control.application_id, control.user_id) control.database.delete_city(city_id) - os.unlink(control.pickle_path) @unittest.skipIf(control.skip_test, control.skip_reason) def test_get_update_city(self): @@ -296,3 +295,4 @@ TestDBFactory def tearDownClass(cls): control.database.delete_application(control.application_uuid) control.database.delete_user(control.user_id) + os.unlink(control.pickle_path)