@@ -11,7 +11,7 @@ Overview
11
11
Developers **must ** include comprehensive tests for any additions or
12
12
modifications to pvlib. New unit test code should be placed in the
13
13
corresponding 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 >`_
15
15
directory.
16
16
17
17
A 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
20
20
environment.
21
21
22
22
To 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 >`_
24
24
file. See :ref: `installation ` instructions for more information.
25
25
26
26
pvlib's unit tests can easily be run by executing ``pytest `` on the
27
- pvlib directory::
27
+ tests directory::
28
28
29
- pytest pvlib
29
+ pytest tests
30
30
31
31
or, for a single module::
32
32
33
- pytest pvlib/ tests/test_clearsky.py
33
+ pytest tests/test_clearsky.py
34
34
35
35
or, for a single test::
36
36
37
- pytest pvlib/ tests/test_clearsky.py::test_ineichen_nans
37
+ pytest tests/test_clearsky.py::test_ineichen_nans
38
38
39
39
We suggest using pytest's ``--pdb `` flag to debug test failures rather
40
40
than using ``print `` or ``logging `` calls. For example::
41
41
42
- pytest pvlib --pdb
42
+ pytest tests --pdb
43
43
44
44
will drop you into the
45
45
`pdb debugger <https://docs.python.org/3/library/pdb.html >`_ at the
@@ -50,7 +50,7 @@ to the test suite (with rare exceptions).
50
50
To include all network-dependent tests, include the ``--remote-data `` flag to
51
51
your ``pytest `` call::
52
52
53
- pytest pvlib --remote-data
53
+ pytest tests --remote-data
54
54
55
55
And consider adding ``@pytest.mark.remote_data `` to any network dependent test
56
56
you submit for a PR.
0 commit comments