Fixing PlaceImage tests

This commit is contained in:
Leonhard Strohmidel
2022-09-25 16:13:19 +02:00
parent 7a7c06882a
commit f06b6bdae9
3 changed files with 12 additions and 4 deletions

View File

@@ -46,6 +46,10 @@ class TestIsAuthenticated(ViewTestCase):
self.assertHttpRedirect(response, '?'.join([str(reverse_lazy('login')), 'next=/']))
self.assertTrue(len(messages) > 0)
self.assertTrue(
_('Please login to proceed') in response.content.decode(),
msg='Expecting a message to tell the user to login'
)
class TestIsPlaceSubmitterMixin(TestCase):