From a69bd0426f5c7778bed8e20a0aced7a5574a1932 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Mon, 3 Oct 2022 13:24:00 +0200 Subject: [PATCH] kfet/open: Add comment to test --- kfet/open/tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kfet/open/tests.py b/kfet/open/tests.py index 295a8cd7..3eabcc02 100644 --- a/kfet/open/tests.py +++ b/kfet/open/tests.py @@ -235,6 +235,9 @@ class OpenKfetConsumerTest(TestCase): async def test_team_user(self): """Team user is added to kfet.open.team group.""" + # On simule l'appartenance de l'user à la team kfet car l'utilisation de + # tests async avec postgres fait tout planter si on modifie la db dans un + # des sous tests. with mock.patch("gestioncof.signals.messages"), mock.patch( "kfet.open.consumers.kfet_is_team", return_value=True ):