From 36ce209787c66802368bdf7f4c523a623565d06d Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 2 Nov 2018 00:18:25 +0100 Subject: [PATCH] [doc] remove references to run_all_tests --- Makefile | 2 -- doc/python_module.rst | 7 ++----- python/README.md | 11 ++++++----- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index f8af602e..2fee6a48 100644 --- a/Makefile +++ b/Makefile @@ -138,8 +138,6 @@ test_python: export LD_LIBRARY_PATH=$(DESTDIR)/$(LIBDIR) test_python: export PYTHONPATH=$(PYDESTDIR)/$(LIBDIR) test_python: local_dylib # run test with installed package - # ./python/tests/run_all_tests --verbose - # run with nose2, multiple processes $(NOSE2) clean_python: diff --git a/doc/python_module.rst b/doc/python_module.rst index cb4d595e..f7225c5d 100644 --- a/doc/python_module.rst +++ b/doc/python_module.rst @@ -67,8 +67,5 @@ The command line `aubio` is also installed: Python tests ------------ -A number of `python tests`_ are provided. To run them, use -``python/tests/run_all_tests``. - -.. _demo_filter.py: https://github.com/aubio/aubio/blob/master/python/demos/demo_filter.py -.. _python tests: https://github.com/aubio/aubio/blob/master/python/tests +A number of python tests are provided. To run them, use ``pytest`` from the +aubio source tree. diff --git a/python/README.md b/python/README.md index dbb8ff37..7e2e7836 100644 --- a/python/README.md +++ b/python/README.md @@ -35,17 +35,18 @@ sounds. Testing the Python module ------------------------- -Python tests are in `python/tests` and use the [nose2 python package][nose2]. +Python tests are in `python/tests` and use [pytest]. -To run the all the python tests, use the script: +To run the all the python tests: - $ ./python/tests/run_all_tests + $ cd aubio + $ pytest Each test script can also be called one at a time. For instance: - $ ./python/tests/test_note2midi.py -v + $ pytest -v python/tests/test_note2midi.py -[nose2]: https://github.com/nose-devs/nose2 +[pytest]: https://pytest.org Install in a virtualenv ----------------------- -- 2.11.0