Skip to content

Commit

Permalink
Fix another resource factory
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed May 24, 2023
1 parent 535cd70 commit 97945fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ckanext/datapusher/tests/test_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ def setup_class(self, clean_db, test_request_context):
if not tests.is_datastore_supported():
pytest.skip("Datastore not supported")

resource = factories.Resource(url_type="datastore")
self.dataset = factories.Dataset(resources=[resource])
self.dataset = factories.Dataset(
resources=[
{"url_type": "datastore"}
])
with test_request_context():
self.sysadmin_user = factories.User(
name="testsysadmin", sysadmin=True
Expand Down

0 comments on commit 97945fb

Please sign in to comment.