zonca/pytest-ipynb

Test labels are not being read out with IPython 4.x

Closed this issue · 1 comments

As one can see below, no test get's a specific label print-out in the console, indicating which test is being run. This was working with IPython 3.x. Instead, just the notebook filename is being shown:

$ py.test -v
/Users/klay6683/miniconda3/lib/python3.4/site-packages/IPython/nbformat.py:13: ShimWarning: The `IPython.nbformat` package has been deprecated. You should import from nbformat instead.
  "You should import from nbformat instead.", ShimWarning)
/Users/klay6683/miniconda3/lib/python3.4/site-packages/nbformat/current.py:19: UserWarning: nbformat.current is deprecated.

- use nbformat for read/write/validate public API
- use nbformat.vX directly to composing notebooks of a particular version

  """)
/Users/klay6683/miniconda3/lib/python3.4/site-packages/IPython/kernel/__init__.py:13: ShimWarning: The `IPython.kernel` package has been deprecated. You should import from ipykernel or jupyter_client instead.
  "You should import from ipykernel or jupyter_client instead.", ShimWarning)
====================================== test session starts =======================================
platform darwin -- Python 3.4.3, pytest-2.8.1, py-1.4.30, pluggy-0.3.1 -- /Users/klay6683/miniconda3/bin/python
cachedir: ../.cache
rootdir: /Users/klay6683/Dropbox/src/spicer, inifile:
plugins: ipynb-1.0.2
collected 3 items

test_spicer.ipynb::notebooks/test_spicer.ipynb PASSED
test_spicer.ipynb::notebooks/test_spicer.ipynb PASSED
test_spicer.ipynb::notebooks/test_spicer.ipynb PASSED

==================================== 3 passed in 9.15 seconds ====================================
zonca commented

@michaelaye I think py.test changed the way they print out the name of the test being executed.