Skip to content

Commit

Permalink
[#2344] Fix edit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Mar 18, 2015
1 parent d42829b commit 4005922
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ckanext/example_igroupform/tests/test_controllers.py
@@ -1,5 +1,3 @@
import urllib

from nose.tools import assert_equal
from routes import url_for

Expand Down Expand Up @@ -56,7 +54,7 @@ def test_save(self):
def _get_group_edit_page(app, group_name=None):
user = factories.User()
if group_name is None:
group = factories.Group(user=user)
group = factories.Group(user=user, type=group_type)
group_name = group['name']
env = {'REMOTE_USER': user['name'].encode('ascii')}
url = url_for('%s_edit' % group_type,
Expand Down Expand Up @@ -93,3 +91,4 @@ def test_save(self):
response = submit_and_follow(app, form, env, 'save')
group = model.Group.by_name(group_name)
assert_equal(group.state, 'active')
assert_equal(group.type, group_type)

0 comments on commit 4005922

Please sign in to comment.