-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
nb_diff_ignore settings in pytest.ini are being ignored #5
Comments
Good to hear thanks 😀 |
minimal_notebook_testing_example.zip Above is a zip file containing the following: -notebooks/minimal_notebook_1.ipnyb, minimal_notebook_2.ipnyb If you The second notebook will pass. I took the same commands from the pytest.ini file and inserted them into the metadata of the notebook, near the bottom. So, it seems that the plug-in ignores the info in pytest.ini file. It's either a bug, or I'm doing something wrong. Either way, I really appreciate your help. |
@chrisjsewell any update on this? |
there is an alternative pytest plugin that we used, called nbval. |
I am very excited about using this plugin. It does exactly what we need on our repo. We have a folder of jupyter notebook examples which we want to test to make sure they are up to data with changes in the main package. We point users to these examples so want to make sure they all work.
Anyway, I've got your plugin working fine with pytest, but only if I put several lines in the meta data of each notebook (eg. "nbreg": { "diff_ignore": [ ] } ). I would really rather not put data explicitly into each file, but rather put some generic statements in the pytest.ini file which apply to all notebooks. Specifically, ignoring metadata and not comparing figures, plus a few other things.
I think I followed the documentation, but nothing I put in the pytest.ini file seems to make any difference.
Here is the pytest-notebook section of my file:
Any suggestions?
The text was updated successfully, but these errors were encountered: