From cd51efea6aa1d060754a9a4859642ba67f19d895 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Thu, 27 Aug 2015 17:31:10 +0100 Subject: [PATCH] Use a real field name and a valid snippet model in SnippetChooserPanel tests --- wagtail/wagtailsnippets/tests.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wagtail/wagtailsnippets/tests.py b/wagtail/wagtailsnippets/tests.py index 92e187d86..5e723a5fe 100644 --- a/wagtail/wagtailsnippets/tests.py +++ b/wagtail/wagtailsnippets/tests.py @@ -241,14 +241,14 @@ class TestSnippetChooserPanel(TestCase): def test_target_content_type(self): result = SnippetChooserPanel( - 'barbecue', - 'wagtailcore.site' + 'advert', + 'tests.advert' ).bind_to_model(SnippetChooserModel).target_content_type() - self.assertEqual(result.name, 'Site') + self.assertEqual(result.name, 'advert') def test_target_content_type_malformed_type(self): result = SnippetChooserPanel( - 'barbecue', + 'advert', 'snowman' ).bind_to_model(SnippetChooserModel) self.assertRaises(ImproperlyConfigured, @@ -256,7 +256,7 @@ class TestSnippetChooserPanel(TestCase): def test_target_content_type_nonexistent_type(self): result = SnippetChooserPanel( - 'barbecue', + 'advert', 'snowman.lorry' ).bind_to_model(SnippetChooserModel) self.assertRaises(ImproperlyConfigured,