From a4606087f8cb8120e9f8d9b0e211978f6701e6ea Mon Sep 17 00:00:00 2001 From: Bianca Danforth Date: Thu, 10 Oct 2024 15:52:18 -0400 Subject: [PATCH] replace Django test command with pytest in webapp test docs (#6750) 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. --- docs/dev.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dev.rst b/docs/dev.rst index ffdebd2c4e..558e6b9a08 100644 --- a/docs/dev.rst +++ b/docs/dev.rst @@ -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::