From dfaabee778e18deb50fd1027135e780fe6f145be Mon Sep 17 00:00:00 2001 From: ajasnosz Date: Thu, 19 Dec 2024 11:32:34 +0100 Subject: [PATCH] test: add unit tests --- test/snmp/test_tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/snmp/test_tasks.py b/test/snmp/test_tasks.py index 54db54b09..e8c6c77ed 100644 --- a/test/snmp/test_tasks.py +++ b/test/snmp/test_tasks.py @@ -19,7 +19,7 @@ def test_format_ipv4_address( # m_poller.return_value = None from splunk_connect_for_snmp.snmp.tasks import format_ipv4_address - # m_mongo_client.return_value = MagicMock() + m_mongo_client.return_value = MagicMock() # m_time.return_value = 1640692955.365186 ip_address = "::ffff:172.31.20.76" @@ -39,7 +39,7 @@ def test_format_ipv4_address_disabled( # m_poller.return_value = None from splunk_connect_for_snmp.snmp.tasks import format_ipv4_address - # m_mongo_client.return_value = MagicMock() + m_mongo_client.return_value = MagicMock() # m_time.return_value = 1640692955.365186 ip_address = "::ffff:172.31.20.76" @@ -59,7 +59,7 @@ def test_format_ipv4_address_ipv6( # m_poller.return_value = None from splunk_connect_for_snmp.snmp.tasks import format_ipv4_address - # m_mongo_client.return_value = MagicMock() + m_mongo_client.return_value = MagicMock() # m_time.return_value = 1640692955.365186 ip_address = "fd02::b24a:409e:a35e:b580"