Skip to content

Commit

Permalink
[#2486] fix package controller tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joetsoi committed Jul 9, 2015
1 parent 76b6f1b commit 642cc78
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ckan/tests/controllers/test_package.py
Expand Up @@ -345,8 +345,7 @@ def setup(self):
model.repo.rebuild_db()

def test_read(self):
user = factories.User()
dataset = factories.Dataset(user=user['name'])
dataset = factories.Dataset()
app = helpers._get_test_app()
response = app.get(url_for(controller='package', action='read',
id=dataset['name']))
Expand Down Expand Up @@ -723,7 +722,7 @@ def test_confirm_and_cancel_deleting_a_resource(self):
response.mustcontain(message.format(name=resource['name']))

# cancelling sends us back to the resource edit page
form = response.forms['confirm-delete-resource-form']
form = response.forms['confirm-resource-delete-form']
response = form.submit('cancel')
response = response.follow()
assert_equal(200, response.status_int)
Expand Down

0 comments on commit 642cc78

Please sign in to comment.