Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 497 Bytes

testing.md

File metadata and controls

24 lines (17 loc) · 497 Bytes

Running tests

First, remove any CACHES entry from config/settings/local.py and add PROTOCOL_LOCATIONS = 'testing/protocol'.

Next, recreate the metadata database from the included database dump:

createdb test_isimip_metadata
psql test_isimip_metadata < testing/sql/test_isimip_metadata.sql

or shorter:

psql < testing/sql/setup.sql

Run the tests with the --reuse-db option:

pytest --reuse-db
pytest --reuse-db --cov --cov-report html