Skip to content

Commit fd86e02

Browse files
committed
f
1 parent a5c4a85 commit fd86e02

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

bec_lib/tests/test_messaging_service.py

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -563,12 +563,12 @@ def test_set_auto_notifications_persists_notification_config(scilog_service, con
563563
config_msg = connected_connector.get(MessageEndpoints.notification_config())
564564
assert config_msg == messages.NotificationConfigMessage(
565565
routes={
566-
"new_scan": [
567-
messages.NotificationServiceTarget(service_name="scilog", scope="default")
568-
]
566+
"new_scan": [messages.NotificationServiceTarget(service_name="scilog", scope="default")]
569567
}
570568
)
571-
assert scilog_service._auto_notifications == {"new_scan": ["default"]} # pylint: disable=protected-access
569+
assert scilog_service._auto_notifications == {
570+
"new_scan": ["default"]
571+
} # pylint: disable=protected-access
572572

573573

574574
def test_set_auto_notifications_merges_with_existing_routes(scilog_service, connected_connector):
@@ -594,7 +594,9 @@ def test_set_auto_notifications_merges_with_existing_routes(scilog_service, conn
594594
]
595595
}
596596
)
597-
assert scilog_service._auto_notifications == {"new_scan": ["default"]} # pylint: disable=protected-access
597+
assert scilog_service._auto_notifications == {
598+
"new_scan": ["default"]
599+
} # pylint: disable=protected-access
598600

599601

600602
def test_set_auto_notifications_disable_removes_only_matching_service_scope(
@@ -635,12 +637,12 @@ def test_set_auto_notifications_uses_default_scope_when_scopes_omitted(
635637
config_msg = connected_connector.get(MessageEndpoints.notification_config())
636638
assert config_msg == messages.NotificationConfigMessage(
637639
routes={
638-
"new_scan": [
639-
messages.NotificationServiceTarget(service_name="scilog", scope="default")
640-
]
640+
"new_scan": [messages.NotificationServiceTarget(service_name="scilog", scope="default")]
641641
}
642642
)
643-
assert scilog_service._auto_notifications == {"new_scan": ["default"]} # pylint: disable=protected-access
643+
assert scilog_service._auto_notifications == {
644+
"new_scan": ["default"]
645+
} # pylint: disable=protected-access
644646

645647

646648
def test_messaging_service_tracks_external_notification_config_updates(
@@ -705,4 +707,6 @@ def test_messaging_service_loads_notification_config_on_init(connected_connector
705707
)
706708
service._on_new_scope_change_msg(message={"data": available_services})
707709

708-
assert service._auto_notifications == {"new_scan": ["default"]} # pylint: disable=protected-access
710+
assert service._auto_notifications == {
711+
"new_scan": ["default"]
712+
} # pylint: disable=protected-access

0 commit comments

Comments
 (0)