Skip to content

Commit

Permalink
[#3684] Fix old test env, pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader authored and smotornyuk committed Jul 21, 2017
1 parent b473ef1 commit aa44f77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ckan/tests/controllers/test_group.py
Expand Up @@ -413,7 +413,7 @@ def test_member_users_cannot_add_members(self):

user = factories.User()
group = factories.Group(
users=[{'name': user['name'], 'capacity': 'member'}]
users=[{'name': user['name'], 'capacity': 'member'}]
)

app = helpers._get_test_app()
Expand Down
4 changes: 2 additions & 2 deletions ckan/tests/controllers/test_organization.py
Expand Up @@ -452,7 +452,7 @@ def test_editor_users_cannot_add_members(self):

user = factories.User()
organization = factories.Organization(
users=[{'name': user['name'], 'capacity': 'editor'}]
users=[{'name': user['name'], 'capacity': 'editor'}]
)

app = helpers._get_test_app()
Expand Down Expand Up @@ -484,7 +484,7 @@ def test_member_users_cannot_add_members(self):

user = factories.User()
organization = factories.Organization(
users=[{'name': user['name'], 'capacity': 'member'}]
users=[{'name': user['name'], 'capacity': 'member'}]
)

app = helpers._get_test_app()
Expand Down
2 changes: 1 addition & 1 deletion ckan/tests/controllers/test_package.py
Expand Up @@ -1327,7 +1327,7 @@ def test_confirm_and_cancel_deleting_a_resource(self):
# cancelling sends us back to the resource edit page
form = response.forms['confirm-resource-delete-form']
response = form.submit('cancel')
response = response.follow()
response = response.follow(extra_environ=env)
assert_equal(200, response.status_int)


Expand Down

0 comments on commit aa44f77

Please sign in to comment.