correct unittest
This commit is contained in:
parent
b7d7c9aadb
commit
7fb39171f4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user