Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Mar 1, 2015
1 parent 39caa97 commit 3b329d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cms/tests/apphooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,8 @@ def test_page_edit_redirect_models(self):
with SettingsOverride(CMS_APPHOOKS=apphooks, ROOT_URLCONF='cms.test_utils.project.placeholderapp_urls'):
self.create_base_structure('Example1App', 'en')
url = admin_reverse('cms_page_resolve')
with self.login_user_context(self.superuser):
self.user = self._create_user('admin_staff', True, True)
with self.login_user_context(self.user):
# parameters - non page object
response = self.client.post(url, {'pk': ex1.pk, 'model': 'placeholderapp.example1'})
self.assertEqual(response.content.decode('utf-8'), ex1.get_absolute_url())
Expand Down

0 comments on commit 3b329d6

Please sign in to comment.