-
- 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
Loading
Please register or sign in to comment