summaryrefslogtreecommitdiff
path: root/tests/unittests/sources/test_init.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/sources/test_init.py')
-rw-r--r--tests/unittests/sources/test_init.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unittests/sources/test_init.py b/tests/unittests/sources/test_init.py
index 0447e02c..96e4dd90 100644
--- a/tests/unittests/sources/test_init.py
+++ b/tests/unittests/sources/test_init.py
@@ -894,15 +894,14 @@ class TestDataSource(CiTestCase):
self.datasource.default_update_events,
)
- def fake_get_data():
- raise Exception("get_data should not be called")
-
+ fake_get_data = mock.Mock()
self.datasource.get_data = fake_get_data
self.assertFalse(
self.datasource.update_metadata_if_supported(
source_event_types=[EventType.BOOT]
)
)
+ self.assertEqual([], fake_get_data.call_args_list)
@mock.patch.dict(
DataSource.supported_update_events,