Skip to content

Commit

Permalink
Another failing test in test_metadata.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhelle committed Nov 10, 2021
1 parent 79c8ae8 commit bdae992
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# --------------------------------------------------------------------------
"""NB metadata test class."""
import pytest_check as check
from msticnb import data_providers
from msticnb import data_providers, nblts
from msticnb.nb_metadata import NBMetadata, read_mod_metadata
from msticnb.nb.azsent.host import host_summary

Expand Down Expand Up @@ -33,6 +33,8 @@ def test_read_metadata():
def test_class_metadata(monkeypatch):
"""Test class correctly loads yaml metadata."""
monkeypatch.setattr(data_providers, "GeoLiteLookup", GeoIPLiteMock)
if "azuredata" in nblts.azsent.host.HostSummary.metadata.req_providers:
nblts.azsent.host.HostSummary.metadata.req_providers.remove("azuredata")
data_providers.init(
query_provider="LocalData", providers=["tilookup", "geolitelookip"]
)
Expand Down

0 comments on commit bdae992

Please sign in to comment.