https://dagster.io/ logo
f

Farhan Husain

10/07/2019, 9:17 PM
does anyone have a simple working example of how to use pytest to test a solid?
s

schrockn

10/07/2019, 9:36 PM
Hey Farhan. The easiest way is to use our built in function,
execute_solid
, which can execute a solid in isolation.
f

Farhan Husain

10/07/2019, 9:44 PM
Thanks, I am trying to follow the docs + examples on github
I have it executing without errors, but now I am searching for how to actually get the return value for a solid
based on the docs it should be the .output_value() of the result from execute_solid
or at least that is how it seems
s

schrockn

10/07/2019, 9:48 PM
yup!
f

Farhan Husain

10/07/2019, 9:50 PM
perfect, thank you!