@@ -11,7 +11,7 @@ Overview
1111Developers **must ** include comprehensive tests for any additions or
1212modifications to pvlib. New unit test code should be placed in the
1313corresponding test module in the
14- `pvlib/ tests <https://github.com/pvlib/pvlib-python/tree/main/pvlib /tests >`_
14+ `tests <https://github.com/pvlib/pvlib-python/tree/main/tests >`_
1515directory.
1616
1717A pull request will automatically run the tests for you on a variety of
@@ -20,26 +20,26 @@ typically more efficient to run and debug the tests in your own local
2020environment.
2121
2222To run the tests locally, install the ``test `` dependencies specified in the
23- `setup.py <https://github.com/pvlib/pvlib-python/blob/main/setup.py >`_
23+ `pyproject.toml <https://github.com/pvlib/pvlib-python/blob/main/pyproject.toml >`_
2424file. See :ref: `installation ` instructions for more information.
2525
2626pvlib's unit tests can easily be run by executing ``pytest `` on the
27- pvlib directory::
27+ tests directory::
2828
29- pytest pvlib
29+ pytest tests
3030
3131or, for a single module::
3232
33- pytest pvlib/ tests/test_clearsky.py
33+ pytest tests/test_clearsky.py
3434
3535or, for a single test::
3636
37- pytest pvlib/ tests/test_clearsky.py::test_ineichen_nans
37+ pytest tests/test_clearsky.py::test_ineichen_nans
3838
3939We suggest using pytest's ``--pdb `` flag to debug test failures rather
4040than using ``print `` or ``logging `` calls. For example::
4141
42- pytest pvlib --pdb
42+ pytest tests --pdb
4343
4444will drop you into the
4545`pdb debugger <https://docs.python.org/3/library/pdb.html >`_ at the
@@ -50,7 +50,7 @@ to the test suite (with rare exceptions).
5050To include all network-dependent tests, include the ``--remote-data `` flag to
5151your ``pytest `` call::
5252
53- pytest pvlib --remote-data
53+ pytest tests --remote-data
5454
5555And consider adding ``@pytest.mark.remote_data `` to any network dependent test
5656you submit for a PR.
0 commit comments