Fix tests

This commit is contained in:
Ludovic Stephan 2021-06-15 16:52:56 +02:00
parent a34b83c236
commit 6a11139588
7 changed files with 28 additions and 13 deletions

View file

@ -253,7 +253,10 @@ class ViewTestCaseMixin(TestCaseMixin):
self.register_user(label, user)
if self.auth_user:
self.client.force_login(self.users[self.auth_user])
self.client.force_login(
self.users[self.auth_user],
backend="django.contrib.auth.backends.ModelBackend",
)
def tearDown(self):
del self.users_base