Skip to content
Snippets Groups Projects
  • Tomáš Čejka's avatar
    de533f8a
    pytest: a few basic tests · de533f8a
    Tomáš Čejka authored
    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.
    de533f8a
    History
    pytest: a few basic tests
    Tomáš Čejka authored
    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.