Title
#beginners-need-help
g

ggerog

01/14/2022, 1:02 PM
thanks! yea I am using Great Expectations on the data side. I was also aiming to write a test suite more than anything. So, I was thinking of running things like this and then having a battery of unit tests for each node.
with KedroSession.create("library") as session:
    context = session.load_context()
    print(context.params)
    session.run(<node1 options>)
    run.node1_tests()
    session.run(<node2 options>)
    ... so on
Does that seem reasonable?
datajoely

datajoely

01/14/2022, 1:52 PM
so this is something I want to improve in the default template
1:53 PM
but this is how I think one should integration test entire pipelines
1:53 PM
message has been deleted
1:53 PM
rather than re-use the real 'context' I think you should create your own catalog, runner and pass the data through that way
g

ggerog

01/14/2022, 2:06 PM
Cool thanks, this makes sense as well. Will definitely use it for inspiration!
i

inigohrey

07/28/2022, 1:02 PM
Thanks for this example @datajoely , this is a really interesting way to set up tests I hadn't thought about.