Is there a recommended way to import a pipeline of...
# questions
y
Is there a recommended way to import a pipeline of my current project in a test folder? I'd like to run it manually for and end to end test,
KedroSession().create().run()
is far too encapsulated because I need some manual data injection, and
from dedro.framework.peoject import pipelines
does not work because I am not at the root of the project but in the test folder.
Precision : I am on kedro 0.18.3 and I have no possibility to upgrade the version.
Hum, reimporting after bootstrapping the project seems to work. It's still a bit difficult to understand
m
Can you do something like
Copy code
from {{ cookiecutter.python_package }}.pipelines.data_science import create_pipeline as create_ds_pipeline
? It's what we have in our starter test examples
y
Yes I can, but I'd prefer the "real" pipeline in the registry (eventually filtered or modified in the registry itself). It feels we should be able to get the pipelines from the session object, like the catalog with
KedroSession.create().load_context().catalog