Test Notebooks#298
Conversation
|
@chinmayshah99 the urls in this notebook seems to be invalid. I replaced "demo" to "dev" in order to make it work (https://raw.githubusercontent.com/OpenMined/PyDP/demo/examples/Tutorial%204-Launch_demo/data/01.csv -> https://raw.githubusercontent.com/OpenMined/PyDP/dev/examples/Tutorial%204-Launch_demo/data/01.csv). Suspect that this is a problem since my notebook test seems to fail here. |
| Run the test example: | ||
| ``` | ||
| $ pipenv run python examples/carrots.py | ||
| $ pipenv run python examples/carrots_demo/carrots.py |
There was a problem hiding this comment.
Rather, can we include this as part of pytest?
There was a problem hiding this comment.
I guess we could. I'm just not sure what was the original intention of putting this script in the contributing.md file? Was it perhaps to let newcomers try and run the code by themselves to get a better feel for the repo? In that case, maybe we should still put this command as part of contributing.md?
There was a problem hiding this comment.
The idea is new-comers could try the python notebook to run our code. the python files are for how to include them as part of the codebase.
I just realized this comment was supposed to be for the file in tests folder.
There was a problem hiding this comment.
@chinmayshah99 I moved jupyter & pandas to devDependencies but the CI seemed to dislike this (?) I encountered jupyter can't be found error (https://github.com/OpenMined/PyDP/runs/1132943621?check_suite_focus=true)
|
You can check why your tests are failing here: https://github.com/OpenMined/PyDP/pull/298/checks?check_run_id=1118715651#step:13:88 |
Thanks chinmay. Yes I saw this: I tried to call that url1 manually in browser, seems to face the same 404 error. Works when I changed PyDP/demo/examples to PyDP/dev/examples though |
|
Hey @edwardelson
|
|
The issue is that on windows a So Change to Nitpicks: Some of the variable names are camel case instead of snake case. Example: Otherwise it looks good to me. |
oh yes that works, thanks @BenjaminDev ! I've also updated the variable names. |
chinmayshah99
left a comment
There was a problem hiding this comment.
LGTM! @edwardelson can you remove WIP title?
Description
This is written to address Issue #294.
TODO
Affected Dependencies
List any dependencies that are required for this change.
How has this been tested?
I've only run "make test" to ensure that this test can be executed by pytest. Not sure how to further test this testing script though.
Checklist