forked from DGNum/gestioCOF
Fix tests
This commit is contained in:
parent
a34b83c236
commit
6a11139588
7 changed files with 28 additions and 13 deletions
|
@ -211,7 +211,7 @@ class OpenKfetConsumerTest(ChannelTestCase):
|
|||
)
|
||||
t.user_permissions.add(is_team)
|
||||
c = WSClient()
|
||||
c.force_login(t)
|
||||
c.force_login(t, backend="django.contrib.auth.backends.ModelBackend")
|
||||
|
||||
# connect
|
||||
c.send_and_consume(
|
||||
|
@ -251,7 +251,9 @@ class OpenKfetScenarioTest(ChannelTestCase):
|
|||
self.r_c.login(username="root", password="root")
|
||||
# its client (for websockets)
|
||||
self.r_c_ws = WSClient()
|
||||
self.r_c_ws.force_login(self.r)
|
||||
self.r_c_ws.force_login(
|
||||
self.r, backend="django.contrib.auth.backends.ModelBackend"
|
||||
)
|
||||
|
||||
self.kfet_open = OpenKfet(
|
||||
cache_prefix="test_kfetopen_%s" % random.randrange(2 ** 20)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue