For testing, I modified the notebook so the number of steps is smaller. This way, people seeing/running it for the first time aren't waiting 2 min just to see if it works. There's a comment saying the number should be increased for production.
Then I added a testing script called test_albocycline.py that can be tested (along with all other future tests) like this:
The test_albocycline.py script converts the Jupyter notebook to a standalone script, and then tries to run it (by importing it). I had to add a try/except loop to the ipython magic commands because they will only run using ipython, and the testing scripts need to be run on the standard python install.
For testing, I modified the notebook so the number of steps is smaller. This way, people seeing/running it for the first time aren't waiting 2 min just to see if it works. There's a comment saying the number should be increased for production.
Then I added a testing script called
test_albocycline.py
that can be tested (along with all other future tests) like this:The
test_albocycline.py
script converts the Jupyter notebook to a standalone script, and then tries to run it (by importing it). I had to add a try/except loop to the ipython magic commands because they will only run usingipython
, and the testing scripts need to be run on the standard python install.