From 0cd8cd577d812d8b5b89e5ffa80f7015f1e4b63e Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 28 Sep 2022 15:55:07 -0400 Subject: [PATCH] UT: Remove unnecessary tests from test_ping_scan_event.py These tests are unnecessary because we will not use json() to convert to JSON. --- .../common/agent_events/test_ping_scan_event.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/monkey/tests/unit_tests/common/agent_events/test_ping_scan_event.py b/monkey/tests/unit_tests/common/agent_events/test_ping_scan_event.py index f225b00a0..c988d3e01 100644 --- a/monkey/tests/unit_tests/common/agent_events/test_ping_scan_event.py +++ b/monkey/tests/unit_tests/common/agent_events/test_ping_scan_event.py @@ -97,20 +97,6 @@ def test_construct__extra_fields_forbidden(): PingScanEvent(**extra_field_dict) -def test_ping_scan_event_serialization_json(): - serialized_event = PING_EVENT.json() - assert "1.1.1.1" in serialized_event - assert "true" in serialized_event - assert OperatingSystem.LINUX.value in serialized_event - assert str(AGENT_ID) in serialized_event - - -def test_ping_scan_event_deserialization_json(): - serialized_event = PING_EVENT.json() - deserialized_event = PingScanEvent.parse_raw(serialized_event) - assert deserialized_event == PING_EVENT - - def test_ping_scan_event_deserialization_dict(): serialized_event = PING_EVENT.dict() deserialized_event = PingScanEvent(**serialized_event)