diff --git a/requirements.txt b/requirements.txt index 17807a0..4034aae 100755 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,6 @@ requests python-dotenv pytest pytest-vcr -pytz xmltodict tqdm pdoc diff --git a/tests/test_nodes.py b/tests/test_nodes.py index 29f9b04..f3a6771 100644 --- a/tests/test_nodes.py +++ b/tests/test_nodes.py @@ -5,7 +5,6 @@ from datetime import datetime import pytest -import pytz from pyonms import PyONMS from pyonms.dao.nodes import NodeComponents @@ -75,11 +74,7 @@ def test_node_ip_services(test_instance: PyONMS): assert isinstance(test_services[0], Service) assert len(test_services) == 5 assert test_services[0].id == 9 - assert test_services[0].lastGood.replace( - tzinfo=pytz.timezone("US/Pacific") - ) == datetime(2024, 1, 4, 17, 45, 5, 647000).replace( - tzinfo=pytz.timezone("US/Pacific") - ) + assert isinstance(test_services[0].lastGood, datetime) assert test_services[0].serviceType.id == 6