forked from DGNum/gestioCOF
Only run kf tests in sequential mode (to fix issues with channels)
This commit is contained in:
parent
16f500838f
commit
48dd2571bc
3 changed files with 9 additions and 5 deletions
|
@ -43,13 +43,21 @@ variables:
|
|||
# Keep this disabled for now, as it may kill GitLab...
|
||||
# coverage: '/TOTAL.*\s(\d+\.\d+)\%$/'
|
||||
|
||||
kfettest:
|
||||
stage: test
|
||||
extends: .test_template
|
||||
variables:
|
||||
DJANGO_SETTINGS_MODULE: "gestioasso.settings.cof_prod"
|
||||
script:
|
||||
- coverage run manage.py kfet
|
||||
|
||||
coftest:
|
||||
stage: test
|
||||
extends: .test_template
|
||||
variables:
|
||||
DJANGO_SETTINGS_MODULE: "gestioasso.settings.cof_prod"
|
||||
script:
|
||||
- coverage run manage.py test gestioncof bda kfet petitscours shared
|
||||
- coverage run manage.py test gestioncof bda petitscours shared --parallel
|
||||
|
||||
bdstest:
|
||||
stage: test
|
||||
|
|
|
@ -285,7 +285,6 @@ class OpenKfetScenarioTest(TestCase):
|
|||
def setUp(self):
|
||||
# Create channels to listen to messages
|
||||
channel_layer = get_channel_layer()
|
||||
async_to_sync(channel_layer.flush)()
|
||||
|
||||
self.channel = async_to_sync(channel_layer.new_channel)()
|
||||
self.team_channel = async_to_sync(channel_layer.new_channel)()
|
||||
|
|
|
@ -1812,7 +1812,6 @@ class KPsulPerformOperationsViewTests(ViewTestCaseMixin, TestCase):
|
|||
|
||||
# Create a channel to listen to KPsul's messages
|
||||
channel_layer = get_channel_layer()
|
||||
async_to_sync(channel_layer.flush)()
|
||||
self.channel = async_to_sync(channel_layer.new_channel)()
|
||||
|
||||
async_to_sync(channel_layer.group_add)("kfet.kpsul", self.channel)
|
||||
|
@ -3242,8 +3241,6 @@ class KPsulCancelOperationsViewTests(ViewTestCaseMixin, TestCase):
|
|||
# Create a channel to listen to KPsul's messages
|
||||
channel_layer = get_channel_layer()
|
||||
|
||||
# Flush old messages
|
||||
async_to_sync(channel_layer.flush)()
|
||||
self.channel = async_to_sync(channel_layer.new_channel)()
|
||||
|
||||
async_to_sync(channel_layer.group_add)("kfet.kpsul", self.channel)
|
||||
|
|
Loading…
Reference in a new issue