Skip to content

Commit

Permalink
test: fix ci tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-salvi-apptware committed Dec 17, 2024
1 parent b205302 commit b3ab4fc
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
from datahub.configuration.datetimes import parse_absolute_time
from datahub.metadata.urns import CorpUserUrn
from datahub.sql_parsing.sql_parsing_aggregator import PreparsedQuery
from datahub.sql_parsing.tool_meta_extractor import ToolMetaExtractor
from datahub.sql_parsing.tool_meta_extractor import (
ToolMetaExtractor,
ToolMetaExtractorReport,
)


def test_extract_mode_metadata() -> None:
extractor = ToolMetaExtractor()
extractor = ToolMetaExtractor(report=ToolMetaExtractorReport())
query = """\
select * from LONG_TAIL_COMPANIONS.ADOPTION.PET_PROFILES
LIMIT 100
Expand All @@ -31,7 +34,9 @@ def test_extract_mode_metadata() -> None:


def test_extract_looker_metadata() -> None:
extractor = ToolMetaExtractor(looker_user_mapping={"7": "[email protected]"})
extractor = ToolMetaExtractor(
report=ToolMetaExtractorReport(), looker_user_mapping={"7": "[email protected]"}
)
looker_query = """\
SELECT
all_entities_extended_sibling."ENTITY" AS "all_entities_extended_sibling.entity_type",
Expand Down Expand Up @@ -63,7 +68,7 @@ def test_extract_looker_metadata() -> None:


def test_extract_no_metadata() -> None:
extractor = ToolMetaExtractor()
extractor = ToolMetaExtractor(report=ToolMetaExtractorReport())
query = """\
select * from LONG_TAIL_COMPANIONS.ADOPTION.PET_PROFILES
LIMIT 100
Expand Down

0 comments on commit b3ab4fc

Please sign in to comment.