Skip to content

Commit

Permalink
Add asset loading test for deselected stream
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardWez committed Nov 21, 2023
1 parent fa57c41 commit 93ea139
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_elx/test_extensions/test_dagster/test_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,15 @@ def test_asset_loading(runner: Runner):
assets = load_assets(runner)
assert len(assets) == 1
assert isinstance(assets[0], AssetsDefinition)


def test_asset_loading_with_deselected_stream(runner_with_deselected_stream: Runner):
"""
Test that assets are loaded correctly.
"""
# Verifies that the associated tap has multiple streams
assert len(runner_with_deselected_stream.tap.catalog.streams) == 2

assets = load_assets(runner_with_deselected_stream)
assert len(assets) == 1
assert isinstance(assets[0], AssetsDefinition)

0 comments on commit 93ea139

Please sign in to comment.