-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[module-loaders] Delete extra_source_assets param from assets_from_mo…
…dules (#26494) This PR was used to accumulate the upstack. ## Summary & Motivation ## How I Tested These Changes ## Changelog > Insert changelog entry or delete this section.
- Loading branch information
Showing
43 changed files
with
1,378 additions
and
768 deletions.
There are no files selected for viewing
8 changes: 5 additions & 3 deletions
8
examples/docs_snippets/docs_snippets_tests/guides_tests/asset_tutorial_tests/test_cereal.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
from dagster._core.definitions.load_assets_from_modules import assets_from_modules | ||
from dagster._core.definitions.materialize import materialize | ||
from dagster._core.definitions.module_loaders.load_assets_from_modules import ( | ||
load_assets_from_modules, | ||
) | ||
from docs_snippets.guides.dagster.asset_tutorial import cereal | ||
from docs_snippets.intro_tutorial.test_util import patch_cereal_requests | ||
|
||
|
||
@patch_cereal_requests | ||
def test_cereal(): | ||
assets, source_assets, _ = assets_from_modules([cereal]) | ||
assert materialize([*assets, *source_assets]) | ||
assets = load_assets_from_modules([cereal]) | ||
assert materialize(assets) |
8 changes: 5 additions & 3 deletions
8
...snippets/docs_snippets_tests/guides_tests/asset_tutorial_tests/test_serial_asset_graph.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
from dagster._core.definitions.load_assets_from_modules import assets_from_modules | ||
from dagster._core.definitions.materialize import materialize | ||
from dagster._core.definitions.module_loaders.load_assets_from_modules import ( | ||
load_assets_from_modules, | ||
) | ||
from docs_snippets.guides.dagster.asset_tutorial import serial_asset_graph | ||
from docs_snippets.intro_tutorial.test_util import patch_cereal_requests | ||
|
||
|
||
@patch_cereal_requests | ||
def test_serial_asset_graph(): | ||
assets, source_assets, _ = assets_from_modules([serial_asset_graph]) | ||
assert materialize([*assets, *source_assets]) | ||
assets = load_assets_from_modules([serial_asset_graph]) | ||
assert materialize(assets) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
802ef32
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for dagster-docs ready!
✅ Preview
https://dagster-docs-h4ror661m-elementl.vercel.app
https://master.dagster.dagster-docs.io
Built with commit 802ef32.
This pull request is being automatically deployed with vercel-action