|
|
1 mesiac pred | |
|---|---|---|
| .. | ||
| __pycache__ | 1 mesiac pred | |
| README.md | 1 mesiac pred | |
| __init__.py | 1 mesiac pred | |
| test_database.py | 1 mesiac pred | |
| test_project_api.py | 1 mesiac pred | |
This directory contains all unit and integration tests for the backend application.
test_database.py - Database initialization and connection management testscd backend
python -m pytest
python -m pytest test/test_database.py
python -m pytest --cov=. --cov-report=html
python -m pytest test/test_database.py::TestDatabaseInitialization
python -m pytest test/test_database.py::TestDatabaseInitialization::test_init_database_creates_tables
Tests are organized into classes by functionality:
When adding new tests:
test_ prefix (e.g., test_routers_project.py)Test prefixtest_ prefixCurrent test coverage focuses on:
See requirements.txt for full dependency list.