Skip to content

Commit

Permalink
Add conftest.py for testing with clean database
Browse files Browse the repository at this point in the history
  • Loading branch information
mjanez committed Aug 27, 2024
1 parent ff4de2c commit 5c183ac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ckanext/schemingdcat/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import pytest

import ckan.plugins as p

@pytest.fixture
def clean_db(reset_db, migrate_db_for):
reset_db()
if p.get_plugin('harvest'):
migrate_db_for('harvest')

0 comments on commit 5c183ac

Please sign in to comment.