diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index aa3036e..421c342 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -46,4 +46,4 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - pytest plotpy + pytest diff --git a/plotpy/tests/conftest.py b/conftest.py similarity index 100% rename from plotpy/tests/conftest.py rename to conftest.py diff --git a/doc/dev/build.rst b/doc/dev/build.rst index 39ae058..7997c97 100644 --- a/doc/dev/build.rst +++ b/doc/dev/build.rst @@ -29,11 +29,11 @@ To run the unittests, you need: Then run the following command:: - pytest plotpy + pytest To run test with coverage support, use the following command:: - pytest -v --cov --cov-report=html plotpy + pytest -v --cov --cov-report=html Code formatting diff --git a/doc/dev/contribute.rst b/doc/dev/contribute.rst index ff5b5f2..d991a43 100644 --- a/doc/dev/contribute.rst +++ b/doc/dev/contribute.rst @@ -75,7 +75,7 @@ Before submitting a patch, please check the following points: .. code-block:: bash - pytest plotpy + pytest Pull request ~~~~~~~~~~~~ diff --git a/doc/dev/platforms.rst b/doc/dev/platforms.rst index efee473..d8669b0 100644 --- a/doc/dev/platforms.rst +++ b/doc/dev/platforms.rst @@ -72,7 +72,7 @@ That's it, you can now run the tests using the following command: .. code-block:: bash - pytest plotpy + pytest If you want to rely on Visual Studio Code for editing and take advantage of the project settings and tasks, you will need to set the following environment variable: @@ -160,4 +160,4 @@ That's it, you can now run the tests using the following command: .. code-block:: bash - pytest plotpy \ No newline at end of file + pytest \ No newline at end of file diff --git a/scripts/run_pytest.bat b/scripts/run_pytest.bat index f7794d7..d49d462 100644 --- a/scripts/run_pytest.bat +++ b/scripts/run_pytest.bat @@ -19,7 +19,7 @@ for /D %%d in ("%DIR0%*") do ( set WINPYDIRBASE=%%d call !WINPYDIRBASE!\scripts\env.bat echo Running pytest from "%%d": - pytest --ff -q %MODNAME% + pytest --ff -q echo ---- ) call %FUNC% EndOfScript