Fix failing common app API tests

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-14 20:24:27 -04:00
parent 6411433b24
commit acffe8a721

View File

@@ -18,7 +18,7 @@ class CommonAPITestCase(BaseAPITestCase):
@override_settings(LANGUAGE_CODE='de')
def test_template_detail_view(self):
self.login_user()
template_main_menu = Template.get(name='main_menu')
template_main_menu = Template.get(name='menu_main')
response = self.get(path=template_main_menu.get_absolute_url())
self.assertContains(
@@ -26,7 +26,7 @@ class CommonAPITestCase(BaseAPITestCase):
)
def test_template_detail_anonymous_view(self):
template_main_menu = Template.get(name='main_menu')
template_main_menu = Template.get(name='menu_main')
response = self.get(path=template_main_menu.get_absolute_url())
self.assertNotContains(
response=response, text=TEST_TEMPLATE_RESULT, status_code=403