Skip to content

Commit

Permalink
[#2939] Fix tests in tests/functional/test_admin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 12, 2012
1 parent ba11d6c commit 3ab3559
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckan/tests/functional/test_admin.py
Expand Up @@ -227,11 +227,11 @@ def test_purge_youngest_revision(self):
edit_url = url_for(controller='package', action='edit', id=id)

# Manually create a revision
res = self.app.get(edit_url)
res = self.app.get(edit_url, extra_environ=as_testsysadmin)
fv = res.forms['dataset-edit']
fv['title'] = 'RevisedTitle'
fv['log_message'] = log_message
res = fv.submit('save')
res = fv.submit('save', extra_environ=as_testsysadmin)

# Delete that revision
rev = model.repo.youngest_revision()
Expand All @@ -247,7 +247,7 @@ def test_purge_youngest_revision(self):
res = res.follow(extra_environ=as_testsysadmin)

# Verify the edit page can be loaded (ie. does not 404)
res = self.app.get(edit_url)
res = self.app.get(edit_url, extra_environ=as_testsysadmin)

def test_undelete(self):
as_testsysadmin = {'REMOTE_USER': 'testsysadmin'}
Expand Down

0 comments on commit 3ab3559

Please sign in to comment.