forked from DGNum/gestioCOF
kfet.tests -- More isolated tests for kfet.open
This commit is contained in:
parent
7ca0144004
commit
5d14fef032
1 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
import json
|
import json
|
||||||
import threading
|
import random
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ class OpenKfetTest(ChannelTestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.kfet_open = OpenKfet(
|
self.kfet_open = OpenKfet(
|
||||||
cache_prefix="test_kfetopen_%s" % threading.get_ident()
|
cache_prefix="test_kfetopen_%s" % random.randrange(2 ** 20)
|
||||||
)
|
)
|
||||||
self.addCleanup(self.kfet_open.clear_cache)
|
self.addCleanup(self.kfet_open.clear_cache)
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ class OpenKfetViewsTest(ChannelTestCase):
|
||||||
self.c_a.login(username="admin", password="admin")
|
self.c_a.login(username="admin", password="admin")
|
||||||
|
|
||||||
self.kfet_open = OpenKfet(
|
self.kfet_open = OpenKfet(
|
||||||
cache_prefix="test_kfetopen_%s" % threading.get_ident()
|
cache_prefix="test_kfetopen_%s" % random.randrange(2 ** 20)
|
||||||
)
|
)
|
||||||
self.addCleanup(self.kfet_open.clear_cache)
|
self.addCleanup(self.kfet_open.clear_cache)
|
||||||
|
|
||||||
|
@ -244,7 +244,7 @@ class OpenKfetScenarioTest(ChannelTestCase):
|
||||||
self.r_c_ws.force_login(self.r)
|
self.r_c_ws.force_login(self.r)
|
||||||
|
|
||||||
self.kfet_open = OpenKfet(
|
self.kfet_open = OpenKfet(
|
||||||
cache_prefix="test_kfetopen_%s" % threading.get_ident()
|
cache_prefix="test_kfetopen_%s" % random.randrange(2 ** 20)
|
||||||
)
|
)
|
||||||
self.addCleanup(self.kfet_open.clear_cache)
|
self.addCleanup(self.kfet_open.clear_cache)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue