From 803cb057afd8202134627b242937aa52a18654ed Mon Sep 17 00:00:00 2001 From: kindly Date: Fri, 23 Mar 2012 12:29:18 +0000 Subject: [PATCH] [2223] fix some test only auth ones left --- ckan/tests/functional/test_authz.py | 5 +---- ckan/tests/functional/test_group.py | 2 +- ckan/tests/functional/test_package.py | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/ckan/tests/functional/test_authz.py b/ckan/tests/functional/test_authz.py index aa206242931..edbf5230abb 100644 --- a/ckan/tests/functional/test_authz.py +++ b/ckan/tests/functional/test_authz.py @@ -100,10 +100,7 @@ def _test_via_wui(self, action, user, entity_name, entity='dataset'): offset = '/%s/list' % entity elif action == 'create': offset = '/%s/new' % entity - if entity == 'dataset': - str_required_in_response = 'Add' - else: - str_required_in_response = 'New' + str_required_in_response = 'Add' elif action == 'delete': offset = url_for(controller=controller_name, action=model.Action.EDIT, id=unicode(entity_name)) # this is ludicrously sensitive (we have to improve html testing!) diff --git a/ckan/tests/functional/test_group.py b/ckan/tests/functional/test_group.py index 46922435e6c..6ba5815e350 100644 --- a/ckan/tests/functional/test_group.py +++ b/ckan/tests/functional/test_group.py @@ -374,7 +374,7 @@ def test_3_new_duplicate_group(self): fv[prefix+'name'] = group_name res = fv.submit('save', status=200, extra_environ={'REMOTE_USER': 'russianfan'}) assert 'Group name already exists' in res, res - self.check_tag(res, '