Skip to content

Commit

Permalink
Mute signals for test simplicity
Browse files Browse the repository at this point in the history
  • Loading branch information
bjester committed Nov 16, 2023
1 parent 5c885b3 commit 193a675
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kolibri/core/device/test/test_soud.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -167,6 +169,7 @@ def test_multiple_users(self):
self.assertEqual(queue.updated, updated)


@mute_signals(post_save)
class SoudExecuteSyncsTestCase(TestCase):
multi_db = True

Expand Down Expand Up @@ -368,6 +371,7 @@ def test_ordering(self):
)


@mute_signals(post_save)
class SoudExecuteSyncTestCase(TestCase):
multi_db = True

Expand Down

0 comments on commit 193a675

Please sign in to comment.