Skip to content

Commit dd84738

Browse files
committed
DOC: adding module specific test command recommendation
1 parent 251d9ce commit dd84738

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/testing.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ requires a few methods that are defined locally in the test file for each module
2929
Monkeypatching
3030
~~~~~~~~~~~~~~
3131
At a minimum, monkeypatching will require these changes:
32-
``
32+
3333
.. code-block:: python
3434
3535
class MockResponse(object):
@@ -126,8 +126,10 @@ Running only the remote-data tests
126126

127127
We should aim to have a reasonably complete test coverage for all the code using the
128128
actual servers (as opposed to mocked tests). To check the remote-data test
129-
coverage you can opt to run only those marked with ``remote_data``:
129+
coverage you can opt to run only those marked with ``remote_data``. Do
130+
remember to change ``<module_you_want_to_test>`` to the module name you
131+
actually work on:
130132

131133
.. code-block:: bash
132134
133-
pytest astroquery docs -m remote_data --remote-data=any --cov astroquery --cov-config=setup.cfg
135+
pytest -P <module_you_want_to_test> -m remote_data --remote-data=any --cov astroquery/<module_you_want_to_test> --cov-config=setup.cfg

0 commit comments

Comments
 (0)