Skip to content

Commit

Permalink
ip_summary test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhelle committed Sep 23, 2024
1 parent 7398551 commit 60818be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/nb/azsent/network/test_ip_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def test_ip_summary_notebooklet(
respx.get(re.compile(r"https://api\.greynoise\.io/.*")).respond(404)
tspan = TimeSpan(period="1D")

monkeypatch.setattr(data_providers, "TILookup", TILookupMock)
assert test_nb.get_provider("tilookup") is not None
assert (
test_nb.get_provider("tilookup") is test_nb.data_providers.providers["tilookup"]
Expand Down Expand Up @@ -188,6 +189,7 @@ def test_ip_summary_notebooklet_internal(
respx.get(re.compile(r".*SecOps-Institute/Tor-IP-Addresses.*")).respond(
200, content=b"12.34.56.78\n12.34.56.78\n12.34.56.78"
)
monkeypatch.setattr(data_providers, "TILookup", TILookupMock)

tspan = TimeSpan(period="1D")

Expand Down Expand Up @@ -245,6 +247,7 @@ def test_ip_summary_notebooklet_all(
200, content=b"12.34.56.78\n12.34.56.78\n12.34.56.78"
)
respx.get(re.compile(r"https://api\.greynoise\.io/.*")).respond(404)
monkeypatch.setattr(data_providers, "TILookup", TILookupMock)
tspan = TimeSpan(period="1D")

result = test_nb.run(value="40.76.43.124", timespan=tspan, options=opts)
Expand Down Expand Up @@ -311,6 +314,7 @@ def test_ip_summary_mde_data(
200, content=b"12.34.56.78\n12.34.56.78\n12.34.56.78"
)
respx.get(re.compile(r"https://api\.greynoise\.io/.*")).respond(404)
monkeypatch.setattr(data_providers, "TILookup", TILookupMock)
tspan = TimeSpan(period="1D")

result = test_nb.run(value="40.76.43.124", timespan=tspan, options=opts)
Expand Down

0 comments on commit 60818be

Please sign in to comment.