Migrating from SourceAsset to AssetSpec but there is no 'io_manager_def' #24174
Answered
by
sryza
GinaStavropoulou
asked this question in
Q&A
-
I am mocking an asset like this: @pytest.fixture(scope="session")
def mock_asset(value):
class MockIOManager(IOManager):
def load_input(self, context):
return value
def handle_output(self, context, obj):
raise NotImplementedError()
return SourceAsset(
key=AssetKey(["group", "my_asset"]),
io_manager_def=MockIOManager(),
) How can I use AssetSpec instead, when there is no 'io_manager_def' parameter? |
Beta Was this translation helpful? Give feedback.
Answered by
sryza
Sep 23, 2024
Replies: 1 comment
-
Thanks for your patience on this one @GinaStavropoulou . I added an answer over here: #20611 (reply in thread). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sryza
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for your patience on this one @GinaStavropoulou . I added an answer over here: #20611 (reply in thread).