|
|
3 tuần trước cách đây | |
|---|---|---|
| .. | ||
| __pycache__ | 3 tuần trước cách đây | |
| README.md | 1 tháng trước cách đây | |
| __init__.py | 1 tháng trước cách đây | |
| test_annotation_api.py | 1 tháng trước cách đây | |
| test_database.py | 3 tuần trước cách đây | |
| test_export_api.py | 3 tuần trước cách đây | |
| test_external_api_integration.py | 3 tuần trước cách đây | |
| test_project_api.py | 1 tháng trước cách đây | |
| test_property_project_creation.py | 1 tháng trước cách đây | |
| test_statistics_api.py | 3 tuần trước cách đây | |
| test_task_api.py | 1 tháng trước cách đây | |
| test_task_assignment_api.py | 3 tuần trước cách đây | |
| test_template_api.py | 3 tuần trước cách đây | |
| test_user_api.py | 3 tuần trước cách đây | |
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.