Skip to content

Commit

Permalink
replace Django test command with pytest in webapp test docs (#6750)
Browse files Browse the repository at this point in the history
Because:
* The `./manage.py test` command uses the `test` command from `setuptools`, which uses `unittest` under the hood.
* Our webapp tests run with `pytest`, and we have test-specific overrides configured in `webapp/pytest.ini` that won't get applied when the tests are run outside of `pytest`.

This commit:
* Updates the docs to use the pytest command.
  • Loading branch information
biancadanforth authored Oct 10, 2024
1 parent ac6a013 commit a460608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/dev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ Running the webapp tests (make sure you run ``./manage.py collectstatic`` first)
app@socorro:/app$ cd webapp
app@socorro:/app/webapp$ ./manage.py collectstatic
app@socorro:/app/webapp$ ./manage.py test
app@socorro:/app/webapp$ pytest
.. Note::

Expand Down

0 comments on commit a460608

Please sign in to comment.