Fixing PlaceImage tests
This commit is contained in:
@@ -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):
|
||||
|
||||
|
Reference in New Issue
Block a user