Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hello!
I am reaching out to the Dataiku user community in regards to the web apps in Dataiku DSS. Does anyone know where I should be writing my test code and calling it as well? For instance, if I wanted to use pytest for testing my flask app.
https://flask.palletsprojects.com/en/1.1.x/testing/
Thank you for your help!
Best,
Adam
Hey Adam,
One option for testing your flask app using a test framework would be to:
The plugin can also be integrated with GitHub as described here: Git integration in the plugin editor. You would need to either download the plugin or push it to Git and work from there to run any created test code.
Alternatively, if you have access to your DSS server, you can grab your python file and run your test code against the python Webapp code. If you do this, you should not store your test files within your data directory, and instead pull your python code out for testing. Your python Webapp code lives in DATA_DIR/config/projects/{PROJECT_NAME}/web_apps/{WEBAPP_ID}/backend.py
Thanks,
Sarina
Hey Adam,
One option for testing your flask app using a test framework would be to:
The plugin can also be integrated with GitHub as described here: Git integration in the plugin editor. You would need to either download the plugin or push it to Git and work from there to run any created test code.
Alternatively, if you have access to your DSS server, you can grab your python file and run your test code against the python Webapp code. If you do this, you should not store your test files within your data directory, and instead pull your python code out for testing. Your python Webapp code lives in DATA_DIR/config/projects/{PROJECT_NAME}/web_apps/{WEBAPP_ID}/backend.py
Thanks,
Sarina
Thank you!