diff --git a/tests/db/sync/test_init.py b/tests/db/sync/test_init.py index 719360ecee1399600716261ab59140b4eeef5f71..88936523ef761240e466d33d323c22c11a353ceb 100644 --- a/tests/db/sync/test_init.py +++ b/tests/db/sync/test_init.py @@ -354,15 +354,15 @@ class SynchronizerTests(SyncTestCase): class ModuleTests(TestCase): - @patch('rattail.db.sync.edbob') - def test_get_sync_engines(self, edbob): + @patch.multiple('rattail.db.sync', edbob=DEFAULT, get_engines=DEFAULT) + def test_get_sync_engines(self, edbob, get_engines): # nothing configured edbob.config.get.return_value = None self.assertIsNone(sync.get_sync_engines()) # fake config with 2 out of 3 engines synced - edbob.engines = { + get_engines.return_value = { 'one': 'first', 'two': 'second', 'three': 'third',