Skip to content

Commit

Permalink
node test updates again
Browse files Browse the repository at this point in the history
  • Loading branch information
mmahacek committed Jan 5, 2024
1 parent 7523f84 commit ac1bbb8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ requests
python-dotenv
pytest
pytest-vcr
pytz
xmltodict
tqdm
pdoc
Expand Down
7 changes: 1 addition & 6 deletions tests/test_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from datetime import datetime

import pytest
import pytz

from pyonms import PyONMS
from pyonms.dao.nodes import NodeComponents
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit ac1bbb8

Please sign in to comment.