Commit 5bcfb22
committed
test(db): add comprehensive unit tests for executor module
- Test QueryResult creation and serialization
- Test QueryValidator for dangerous keywords and injection patterns
- Test SafeQueryExecutor execution, timeout, and error handling
- Test sanitize_identifier for SQL identifier cleaning
- Test all 11 dangerous keywords and 6 injection patterns
Coverage: 43 tests for db/executor.py1 parent 99268fd commit 5bcfb22
1 file changed
Lines changed: 408 additions & 0 deletions
0 commit comments