Skip to content

Commit

Permalink
test(ingest): fix pytest warning for class starting with Test (data…
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored Dec 15, 2021
1 parent 1f53e0b commit adf9d2e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions metadata-ingestion/tests/unit/test_usage_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
)
from datahub.metadata.schema_classes import DatasetUsageStatisticsClass

TestTableRef = str
_TestTableRef = str

TestAggregatedDataset = GenericAggregatedDataset[TestTableRef]
_TestAggregatedDataset = GenericAggregatedDataset[_TestTableRef]


def test_add_one_query_without_columns():
Expand All @@ -27,7 +27,7 @@ def test_add_one_query_without_columns():

resource = "test_db.test_schema.test_table"

ta = TestAggregatedDataset(bucket_start_time=floored_ts, resource=resource)
ta = _TestAggregatedDataset(bucket_start_time=floored_ts, resource=resource)
ta.add_read_entry(
test_email,
test_query,
Expand All @@ -52,7 +52,7 @@ def test_multiple_query_without_columns():

resource = "test_db.test_schema.test_table"

ta = TestAggregatedDataset(bucket_start_time=floored_ts, resource=resource)
ta = _TestAggregatedDataset(bucket_start_time=floored_ts, resource=resource)
ta.add_read_entry(
test_email,
test_query,
Expand Down Expand Up @@ -88,7 +88,7 @@ def test_make_usage_workunit():

resource = "test_db.test_schema.test_table"

ta = TestAggregatedDataset(bucket_start_time=floored_ts, resource=resource)
ta = _TestAggregatedDataset(bucket_start_time=floored_ts, resource=resource)
ta.add_read_entry(
test_email,
test_query,
Expand Down Expand Up @@ -117,7 +117,7 @@ def test_query_trimming():

resource = "test_db.test_schema.test_table"

ta = TestAggregatedDataset(bucket_start_time=floored_ts, resource=resource)
ta = _TestAggregatedDataset(bucket_start_time=floored_ts, resource=resource)
ta.total_budget_for_query_list = total_budget_for_query_list

ta.add_read_entry(
Expand Down

0 comments on commit adf9d2e

Please sign in to comment.