Skip to content
Snippets Groups Projects
Commit de533f8a authored by Tomáš Čejka's avatar Tomáš Čejka
Browse files

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.
parent 47e229f1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment