Levan
08/25/2021, 10:39 AMNothing
dependency as below:
@op(input_defs=[InputDefinition("start", Nothing)])
def install_deps(context, package: str = ""):
...
Now I'm trying to invoke it for testing as below:
def test_install_deps():
context = build_solid_context()
result = install_deps(context, package="test")
But it fails dagster.core.errors.DagsterInvalidInvocationError: No value provided for required input "start".
if I pass start
as
@op
def dummy_op():
return
install_deps(context, start=dummy_op(), package="test")
I get: TypeError: install_deps() got an unexpected keyword argument 'start'
How else should I pass the input start
?chris
08/25/2021, 12:58 PMops
, there's also a build_op_context
which should work with the same functionality as build_solid_context
!Levan
08/25/2021, 3:13 PM