e64f0f2705
- Add SECRET_KEY and ENCRYPTION_KEY validation on startup - Implement security headers middleware (X-Frame-Options, CSP, HSTS) - Add CSRF protection middleware - Create comprehensive GitHub issue templates and PR template - Add Makefile with common development tasks - Configure pre-commit hooks (black, ruff, mypy, bandit, detect-secrets) - Create docs/CODING_PATTERNS.md with best practices - Create docs/ERRORS.md documenting all error codes - Add Architecture Decision Records (ADR) for Celery and Fernet encryption - Create CHANGELOG.md for version tracking - Set up pytest test infrastructure with fixtures and factories - Add sample unit tests for security and config validation - Create CI/CD workflows (test, lint, security) - Add comprehensive TODO.md with milestones and progress tracking Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
50 lines
1.1 KiB
Markdown
50 lines
1.1 KiB
Markdown
---
|
|
name: Test Needed
|
|
about: Identify code that needs test coverage
|
|
title: '[TEST] '
|
|
labels: testing, help wanted
|
|
assignees: ''
|
|
---
|
|
|
|
## Code to Test
|
|
<!-- What code needs test coverage? -->
|
|
- **File**: `path/to/file.py`
|
|
- **Function/Class**: `function_name` or `ClassName`
|
|
- **Lines**: [e.g., lines 50-100]
|
|
|
|
## Current Coverage
|
|
<!-- What's the current test coverage for this code? -->
|
|
- [ ] No tests exist
|
|
- [ ] Partial coverage (describe what's tested)
|
|
|
|
## Test Type Needed
|
|
- [ ] Unit tests
|
|
- [ ] Integration tests
|
|
- [ ] End-to-end tests
|
|
- [ ] Performance tests
|
|
- [ ] Security tests
|
|
|
|
## Test Scenarios
|
|
<!-- List specific scenarios that should be tested -->
|
|
1. Happy path:
|
|
2. Error handling:
|
|
3. Edge cases:
|
|
4. Boundary conditions:
|
|
|
|
## Dependencies
|
|
<!-- What needs to be mocked or stubbed? -->
|
|
- External API:
|
|
- Database:
|
|
- File system:
|
|
- Environment variables:
|
|
|
|
## Acceptance Criteria
|
|
- [ ] All scenarios covered
|
|
- [ ] Edge cases tested
|
|
- [ ] Error paths tested
|
|
- [ ] Coverage increased by X%
|
|
- [ ] Tests documented
|
|
|
|
## Related Code
|
|
<!-- Link to related functions, classes, or issues -->
|