An open API service indexing awesome lists of open source software.

https://github.com/beda-software/devdays2020-sdc-demo-backend


https://github.com/beda-software/devdays2020-sdc-demo-backend

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

# sdc-demo Backend

## Black autoformater
```
brew install pre-commit
pre-commit install
```

## Tests
To run tests locally, copy `.env.tpl` to `.env` and specify `TESTS_AIDBOX_LICENSE_ID` and `TESTS_AIDBOX_LICENSE_KEY` [https://license-ui.aidbox.app/](https://license-ui.aidbox.app/).

Build images using `docker-compose -f docker-compose.tests.yaml build`.

After that, just start `./run_test.sh` or `./run_test.sh tests/test_base.py` (if you want to run the particular file/test).
The first run may take about a minute because it prepares the db and devbox.

If you have updated some requirements, you need to re-run `docker-compose -f docker-compose.tests.yaml build`