Skip to content

Commit

Permalink
fix group_name in to_source_assets (#8279)
Browse files Browse the repository at this point in the history
  • Loading branch information
sryza committed Jun 9, 2022
1 parent 079bdd9 commit c52c203
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions python_modules/dagster/dagster/core/asset_defs/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ def to_source_assets(self) -> Sequence[SourceAsset]:
description=output_def.description,
resource_defs=self.resource_defs,
partitions_def=self.partitions_def,
group_name=self.group_names[asset_key],
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,7 @@ def asset2():


def test_to_source_assets():
@asset
@asset(group_name="abc")
def my_asset():
...

Expand All @@ -1282,6 +1282,7 @@ def my_multi_asset():
AssetKey(["my_asset"]),
io_manager_key="io_manager",
resource_defs={"io_manager": fs_io_manager},
group_name="abc",
),
SourceAsset(
AssetKey(["my_asset_name"]),
Expand Down

0 comments on commit c52c203

Please sign in to comment.