Skip to content

Commit

Permalink
Completely replaced ckan/tests/legacy/functional/api/test_activity.py
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Jan 19, 2019
1 parent bf4c7c7 commit 6ee934f
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 833 deletions.
4 changes: 3 additions & 1 deletion ckan/tests/controllers/test_organization.py
Expand Up @@ -235,7 +235,9 @@ def test_delete_organization_with_unknown_dataset_true(self):
datasets are set to true'''
dataset = factories.Dataset(owner_org=self.organization['id'])
assert_equal(dataset['owner_org'], self.organization['id'])
helpers.call_action('organization_delete', id=self.organization['id'])
user = factories.User()
helpers.call_action('organization_delete', id=self.organization['id'],
context={'user': user['name']})

dataset = helpers.call_action('package_show', id=dataset['id'])
assert_equal(dataset['owner_org'], None)
Expand Down

0 comments on commit 6ee934f

Please sign in to comment.