Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

save once

  • Loading branch information...
commit f0e30cf69bb9f893d379636e2670e887cc229308 1 parent e7bfe00
Øyvind Saltvik fivethreeo authored
Showing with 3 additions and 2 deletions.
  1. +0 −1  cms/tests/base.py
  2. +3 −1 cms/tests/permmod.py
1  cms/tests/base.py
View
@@ -147,7 +147,6 @@ def create_page(self, parent_page=None, user=None, position="last-child",
page = Page.objects.create(**page_data)
if parent_page:
page.move_to(parent_page, position)
- page.save()
if settings.CMS_MODERATOR and user:
page.pagemoderator_set.create(user=user)
4 cms/tests/permmod.py
View
@@ -341,7 +341,7 @@ def test_06_page_added_by_slave_can_be_published_approved_by_user_master(self):
page = self.create_page(self.slave_page, user=self.user_slave)
# same as test_05_slave_can_add_page_under_slave_home
self.assertEqual(page.get_moderator_queryset().count(), 1)
- self.assertTrue(page.moderator_state == Page.MODERATOR_NEED_APPROVEMENT)
+ self.assertTrue(page.moderator_state == Page.MODERATOR_CHANGED)
# must not have public object yet
self.assertFalse(page.publisher_public)
@@ -683,6 +683,8 @@ def test_19_remove_plugin_page_under_moderation(self):
# add plugin
plugin_id = self.add_plugin(self.user_slave, page)
+ self.assertEqual(page.moderator_state, Page.MODERATOR_CHANGED)
+
# publish page
page = self.publish_page(page, published_check=False)
Please sign in to comment.
Something went wrong with that request. Please try again.