-
- Downloads
pytest: a few basic tests
The tests can be executed by: `pytest` To see the output, use `pytest --verbosity=4 --capture=tee-sys` Server does not need to be running for the tests, pytest can start own django service that responds (e.g., to REST API). It is necessary to have created DB with `admin` user having a REST API token! The `test_viewsets.py` sets DB in `django_db_setup()` fixture.
Showing
- flowspec/tasks.py 2 additions, 0 deletionsflowspec/tasks.py
- flowspec/test_views.py 15 additions, 0 deletionsflowspec/test_views.py
- flowspec/test_viewsets.py 164 additions, 0 deletionsflowspec/test_viewsets.py
- pytest.ini 5 additions, 0 deletionspytest.ini
- requirements.txt 3 additions, 0 deletionsrequirements.txt
flowspec/test_views.py
0 → 100644
flowspec/test_viewsets.py
0 → 100644
pytest.ini
0 → 100644
... | @@ -35,3 +35,6 @@ appdirs | ... | @@ -35,3 +35,6 @@ appdirs |
anyjson | anyjson | ||
cryptography | cryptography | ||
redis | redis | ||
pytest==6.2.5 | |||
pytest-django==4.4.0 | |||
Please register or sign in to comment