From 23a51bf1c7b729e3a55f65f07bd11fd9eb6d194b Mon Sep 17 00:00:00 2001 From: schnee Date: Sat, 7 Oct 2023 16:53:53 +0800 Subject: [PATCH] test: fix unittest --- src/bk-user/tests/apps/data_source/test_notifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bk-user/tests/apps/data_source/test_notifier.py b/src/bk-user/tests/apps/data_source/test_notifier.py index 0289a108f..48104e578 100644 --- a/src/bk-user/tests/apps/data_source/test_notifier.py +++ b/src/bk-user/tests/apps/data_source/test_notifier.py @@ -48,7 +48,7 @@ def test_send_without_passwd_map(self, full_local_data_source): @mock.patch("bkuser.component.cmsi.send_mail", return_value=None) @mock.patch("bkuser.component.cmsi.send_sms", return_value=None) - def test_send(self, full_local_data_source): + def test_send(self, mocked_send_sms, mocked_send_mail, full_local_data_source): notifier = LocalDataSourceUserNotifier( data_source=full_local_data_source, scene=NotificationScene.USER_INITIALIZE )