Add tests for audits and flavor utilities, update .gitignore, and enhance CPU data handling

This commit is contained in:
2026-02-06 16:29:34 +03:00
parent 57a2933f28
commit e3a9500352
8 changed files with 344 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
# watcher-visio
## Running tests
From the project root (with Django and dependencies installed, e.g. in a virtualenv):
```bash
python manage.py test dashboard
```
Run a specific test module:
```bash
python manage.py test dashboard.tests.test_mathfilters
```
### Running tests in Docker
Use the **dev** compose file so the project directory is mounted; the container will then run tests against your current code (no image rebuild needed):
```bash
docker compose -f docker-compose.yml -f docker-compose.dev.yml run --rm watcher-visio python3 manage.py test dashboard
```
If you run tests with only the base compose (`docker compose run --rm watcher-visio ...`), the container uses the code baked into the image at build time. After code or test changes, either rebuild the image or use the dev override above so tests see the latest files.