forked from DGNum/gestioCOF
Fix tests
This commit is contained in:
parent
a34b83c236
commit
6a11139588
7 changed files with 28 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue