hey guys, Is there a way to write a test to expec...
# questions
f
hey guys, Is there a way to write a test to expect no MemoryDataset? 🤔
n
Can you explain a little bit what are you trying to do here?
f
Just having tests to make sure every kedro node has dataset defined in the catalog. We will run the tests in cloud for node -> pod style so it is important to make sure we don't have memory datasets defined somewhere
n
Gotcha, so there is a CLI
kedro catalog create
, which does the thing exactly opposite to what you need. It will create an entry with MemoryDataSet as default if it exists in the pipeline but not define in
catalog.yml
You may reference to
kedro/framework/cli/catalog.py
and check the
create_catalog
function
f
ah thanks, already does the job for me thankyou
K 1
n
nice!