From 193a675d17790d4209c55610bbce5e6a575dffe4 Mon Sep 17 00:00:00 2001 From: Blaine Jester Date: Thu, 16 Nov 2023 12:35:14 -0800 Subject: [PATCH] Mute signals for test simplicity --- kolibri/core/device/test/test_soud.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kolibri/core/device/test/test_soud.py b/kolibri/core/device/test/test_soud.py index 93b2a884cf8..9e3a1a3d43f 100644 --- a/kolibri/core/device/test/test_soud.py +++ b/kolibri/core/device/test/test_soud.py @@ -6,8 +6,10 @@ from functools import partial import mock +from django.db.models.signals import post_save from django.test import TestCase from morango.errors import MorangoResumeSyncError +from morango.sync.utils import mute_signals from ..soud import Context from ..soud import execute_sync @@ -167,6 +169,7 @@ def test_multiple_users(self): self.assertEqual(queue.updated, updated) +@mute_signals(post_save) class SoudExecuteSyncsTestCase(TestCase): multi_db = True @@ -368,6 +371,7 @@ def test_ordering(self): ) +@mute_signals(post_save) class SoudExecuteSyncTestCase(TestCase): multi_db = True