Skip to content

Commit

Permalink
clean db after test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya-Oladazimi committed Dec 16, 2024
1 parent e72d2ee commit 9c9ae57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/dataset_reference/tests/test_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@


@pytest.mark.ckan_config('ckan.plugins', 'dataset_reference')
@pytest.mark.usefixtures('with_plugins', 'with_request_context')
@pytest.mark.usefixtures('clean_db', 'with_plugins', 'with_request_context')
class TestControllers(object):

@pytest.fixture(autouse=True)
def intial(self):
def intial(self, clean_db, clean_index):
ctd.CreateTestData.create()
sysadmin_user = model.User.get("testsysadmin")
self.auth = {u"Authorization": str(sysadmin_user.apikey)}
Expand Down

0 comments on commit 9c9ae57

Please sign in to comment.