Skip to content

Commit

Permalink
[#2939] Fix functional package tests for new authz
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 10, 2012
1 parent bfac4af commit 0407a5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckan/tests/functional/test_package.py
Expand Up @@ -601,7 +601,7 @@ def _reset_data(self):
self.offset = url_for(controller='package', action='edit', id=self.editpkg_name)

self.editpkg = model.Package.by_name(self.editpkg_name)
self.admin = model.User.by_name(u'testadmin')
self.admin = model.User.by_name(u'testsysadmin')

self.extra_environ_admin = {'REMOTE_USER': self.admin.name.encode('utf8')}
self.extra_environ_russianfan = {'REMOTE_USER': 'russianfan'}
Expand Down Expand Up @@ -837,7 +837,7 @@ def test_edit_all_fields(self):
extra_new,
('key3', extras['key3'], True))

res = fv.submit('save', extra_environ={'REMOTE_USER':'testadmin'})
res = fv.submit('save', extra_environ={'REMOTE_USER':'testsysadmin'})

# Check dataset page
assert not 'Error' in res, res
Expand Down Expand Up @@ -867,7 +867,7 @@ def test_edit_all_fields(self):

# for some reason environ['REMOTE_ADDR'] is undefined
rev = model.Revision.youngest(model.Session)
assert rev.author == 'testadmin', rev.author
assert rev.author == 'testsysadmin', rev.author
assert rev.message == log_message
# TODO: reinstate once fixed in code
exp_log_message = u'Creating dataset %s' % name
Expand Down

0 comments on commit 0407a5d

Please sign in to comment.