https://dagster.io/ logo
Title
s

Steve Pletcher

04/27/2021, 3:09 PM
i'm writing some tests for some configuration code we put into place, and i'm a bit stuck trying to validate that a
configured
invocation is correctly configuring an object. if i call
configured(foo)({'a': 'b'})
, how can i validate that the
a
value in the solid config has been set to
b
?
m

Max Wong

04/27/2021, 4:14 PM
Python assertion? After all the config can be converted to a python dict
s

Steve Pletcher

04/27/2021, 4:30 PM
right, i'm asking how to access the config dict from the return value of
configured()()
the only thing i can seem to find in the result is the config schema of the new object. you can use that to verify that a configured value is no longer being accepted in the config, but not what its new predefined value is
s

sandy

04/27/2021, 10:03 PM
hi @Steve Pletcher - there's currently no way to do this other than to run the pipeline and print out the value inside the solid itself. this sounds like a valuable capability though - I filed an issue: https://github.com/dagster-io/dagster/issues/4093
❤️ 1