correct unittest

This commit is contained in:
Guille Gutierrez 2023-08-08 12:01:21 -04:00
parent b7d7c9aadb
commit 7fb39171f4

View File

@ -114,7 +114,7 @@ class Control:
) )
self._user_id = self._database.create_user('city_layers', self._application_id, 'city_layers', UserRoles.Admin) 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 @property
def database(self): def database(self):
@ -183,7 +183,6 @@ TestDBFactory
control.application_id, control.application_id,
control.user_id) control.user_id)
control.database.delete_city(city_id) control.database.delete_city(city_id)
os.unlink(control.pickle_path)
@unittest.skipIf(control.skip_test, control.skip_reason) @unittest.skipIf(control.skip_test, control.skip_reason)
def test_get_update_city(self): def test_get_update_city(self):
@ -296,3 +295,4 @@ TestDBFactory
def tearDownClass(cls): def tearDownClass(cls):
control.database.delete_application(control.application_uuid) control.database.delete_application(control.application_uuid)
control.database.delete_user(control.user_id) control.database.delete_user(control.user_id)
os.unlink(control.pickle_path)