Skip to content

Commit

Permalink
Update test to reflect change in treatment if show_in_menus
Browse files Browse the repository at this point in the history
  • Loading branch information
ababic committed Jun 20, 2019
1 parent ad46654 commit 6b3f18c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wagtail/core/tests/test_page_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,7 @@ def test_with_content_json_preserves_values(self):
eventpage_content_type = ContentType.objects.get_for_model(EventPage)

# Take a json representation of the page and update it
# with the above values
# with some alternative values
content = json.loads(original_page.to_json())
content.update(
title='About them',
Expand Down Expand Up @@ -1572,7 +1572,7 @@ def test_with_content_json_preserves_values(self):
updated_page = original_page.with_content_json(content_json)

# The following attributes values should have changed
for attr_name in ('title', 'slug', 'content', 'url_path'):
for attr_name in ('title', 'slug', 'content', 'url_path', 'show_in_menus'):
self.assertNotEqual(
getattr(original_page, attr_name),
getattr(updated_page, attr_name)
Expand All @@ -1582,7 +1582,7 @@ def test_with_content_json_preserves_values(self):
# despite new values being provided in content_json
for attr_name in (
'pk', 'path', 'depth', 'numchild', 'content_type', 'draft_title',
'live', 'has_unpublished_changes', 'owner', 'locked', 'show_in_menus',
'live', 'has_unpublished_changes', 'owner', 'locked',
'latest_revision_created_at', 'first_published_at',
):
self.assertEqual(
Expand Down

0 comments on commit 6b3f18c

Please sign in to comment.