Commit 976908c
fix: Fix AuditEvent import bug in delete_pattern + add 90%+ test coverage
- Fixed bug in secure_memdocs.py line 1136 where delete_pattern incorrectly
referenced self.audit_logger.AuditEvent instead of imported AuditEvent class
- Added test_secure_memdocs_extended.py with 47 tests covering encryption,
error handling, classification edge cases, and delete functionality
- Added test_audit_logger_extended.py with 37 tests covering log rotation,
date range queries, custom filters, and compliance reporting
- Total test coverage now 90.08% (1,840 tests passing)
Key coverage improvements:
- secure_memdocs.py: 96.12%
- audit_logger.py: 95.29%
- secrets_detector.py: 94.98%
- pii_scrubber.py: 97.84%
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 8001aa1 commit 976908c
File tree
3 files changed
+1846
-2
lines changed- empathy_llm_toolkit/security
- tests
3 files changed
+1846
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
1133 | 1133 | | |
1134 | 1134 | | |
1135 | 1135 | | |
1136 | | - | |
| 1136 | + | |
1137 | 1137 | | |
1138 | 1138 | | |
1139 | 1139 | | |
| |||
0 commit comments