Skip to content

Commit

Permalink
[#3016] Fix test after bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Mar 9, 2017
1 parent 0c03d5a commit 0a047e8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ckanext/datastore/tests/test_delete.py
Expand Up @@ -118,9 +118,11 @@ def test_datastore_deleted_during_resource_deletion(self):
'package_id': package['id']
},
}
result = helpers.call_action('datastore_create', **data)
resource_id = result['resource_id']
helpers.call_action('resource_delete', id=resource_id)

with self.app.flask_app.test_request_context():
result = helpers.call_action('datastore_create', **data)
resource_id = result['resource_id']
helpers.call_action('resource_delete', id=resource_id)

assert_raises(
NotFound, helpers.call_action, 'datastore_search',
Expand Down

0 comments on commit 0a047e8

Please sign in to comment.