Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maximearmstrong committed Dec 27, 2024
1 parent 4c208a2 commit 53ec9a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from dagster_powerbi import PowerBIWorkspace
from dagster_powerbi.assets import build_semantic_model_refresh_asset_definition
from dagster_powerbi.resource import BASE_API_URL, PowerBIToken, load_powerbi_asset_specs
from dagster_powerbi.translator import DagsterPowerBITranslator, PowerBIContentData
from dagster_powerbi.translator import DagsterPowerBITranslator, PowerBITranslatorData

from dagster_powerbi_tests.conftest import SAMPLE_SEMANTIC_MODEL

Expand Down Expand Up @@ -85,8 +85,8 @@ def test_translator_dashboard_spec(workspace_data_api_mocks: None, workspace_id:


class MyCustomTranslator(DagsterPowerBITranslator):
def get_asset_spec(self, data: PowerBIContentData) -> AssetSpec:
default_spec = super().get_asset_spec(data) # type: ignore
def get_asset_spec(self, data: PowerBITranslatorData) -> AssetSpec:
default_spec = super().get_asset_spec(data)
return default_spec.replace_attributes(
key=default_spec.key.with_prefix("prefix"),
).merge_attributes(metadata={"custom": "metadata"})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ def test_translator_semantic_model_many_tables(second_workspace_data: PowerBIWor


class MyCustomTranslator(DagsterPowerBITranslator):
def get_asset_spec(self, data: PowerBIContentData) -> AssetSpec:
default_spec = super().get_asset_spec(data) # type: ignore
def get_asset_spec(self, data: PowerBITranslatorData) -> AssetSpec:
default_spec = super().get_asset_spec(data)
return default_spec.replace_attributes(
key=default_spec.key.with_prefix("prefix"),
).merge_attributes(metadata={"custom": "metadata"})
Expand Down

0 comments on commit 53ec9a9

Please sign in to comment.