From 5da8b424b57fe3df0f968c7fa5a45eceefafe1da Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 6 Sep 2022 18:13:25 +0530 Subject: [PATCH] UT: Use IslandEventTopic enum's names for pypubsub topics --- .../common/event_queue/test_pypubsub_island_event_queue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/tests/unit_tests/common/event_queue/test_pypubsub_island_event_queue.py b/monkey/tests/unit_tests/common/event_queue/test_pypubsub_island_event_queue.py index cf51780f7..d026a288a 100644 --- a/monkey/tests/unit_tests/common/event_queue/test_pypubsub_island_event_queue.py +++ b/monkey/tests/unit_tests/common/event_queue/test_pypubsub_island_event_queue.py @@ -43,8 +43,8 @@ def test_subscribe_publish( assert event_queue_subscriber.call_count == 2 assert event_queue_subscriber.call_topics == { - IslandEventTopic.AGENT_CONNECTED.value, - IslandEventTopic.CLEAR_SIMULATION_DATA.value, + IslandEventTopic.AGENT_CONNECTED.name, + IslandEventTopic.CLEAR_SIMULATION_DATA.name, }