nordabiz/tests/__init__.py
Maciej Pienczyn a57187e05f
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
test: Add comprehensive testing infrastructure
- pytest framework with fixtures for auth (auth_client, admin_client)
- Unit tests for SearchService
- Integration tests for auth flow
- Security tests (OWASP Top 10: SQL injection, XSS, CSRF)
- Smoke tests for production health and backup monitoring
- E2E tests with Playwright (basic structure)
- DR tests for backup/restore procedures
- GitHub Actions CI/CD workflow (.github/workflows/test.yml)
- Coverage configuration (.coveragerc) with 80% minimum
- DR documentation and restore script

Staging environment: VM 248, staging.nordabiznes.pl

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 07:52:34 +01:00

29 lines
689 B
Python

"""
NordaBiz Test Suite
===================
Test categories:
- unit/ : Unit tests (fast, no external dependencies)
- integration/ : Integration tests (requires database)
- e2e/ : End-to-end tests (requires staging/production)
- smoke/ : Smoke tests (quick production health checks)
- security/ : Security tests (OWASP Top 10)
- migration/ : Database migration tests
- dr/ : Disaster recovery tests
Running tests:
# All tests
pytest
# Specific category
pytest tests/unit/ -v
pytest tests/smoke/ -v
# With markers
pytest -m "unit" -v
pytest -m "not slow" -v
# With coverage
pytest --cov=. --cov-report=html
"""