Skip to content

Commit

Permalink
pytest: moved conftest.py to project root
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Mar 12, 2024
1 parent a6f8a8a commit 50da2e9
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
File renamed without changes.
4 changes: 2 additions & 2 deletions doc/dev/build.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion doc/dev/contribute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Before submitting a patch, please check the following points:

.. code-block:: bash
pytest plotpy
pytest
Pull request
~~~~~~~~~~~~
Expand Down
4 changes: 2 additions & 2 deletions doc/dev/platforms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -160,4 +160,4 @@ That's it, you can now run the tests using the following command:

.. code-block:: bash
pytest plotpy
pytest
2 changes: 1 addition & 1 deletion scripts/run_pytest.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 50da2e9

Please sign in to comment.