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
- Host: GitHub
- URL: https://github.com/beda-software/devdays2020-sdc-demo-backend
- Owner: beda-software
- License: mit
- Created: 2020-11-17T18:55:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-15T14:23:10.000Z (over 5 years ago)
- Last Synced: 2025-01-10T02:19:30.779Z (over 1 year ago)
- Language: Python
- Size: 60.5 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`