https://dagster.io/ logo
Title
l

Levan

08/25/2021, 10:39 AM
Hi! I have op with
Nothing
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
?
c

chris

08/25/2021, 12:58 PM
taking a look
Yep this is totally a bug. Thanks for surfacing ! I'll put up a fix now, and hopefully get it in for tomorrow's release
👍 2
Unrelated, but if you're using
ops
, there's also a
build_op_context
which should work with the same functionality as
build_solid_context
!
https://github.com/dagster-io/dagster/pull/4626 should be out for next release
:thankyou: 1
l

Levan

08/25/2021, 3:13 PM
Thanks @chris !