Commit 7df4e24
committed
test(hermes): add opt-in real CLI smoke and state.db fixture tests
- Rewrite test_hermes_cli_available_and_mocked into two opt-in smoke tests:
* test_hermes_cli_available: fast hermes --version probe (skip if missing)
* test_real_hermes_chat_smoke: real CLI invocation + backend-path call
(opt-in via SKILLOPT_REAL_HERMES=1; uses -Q --max-turns 1 flags)
- Add tests/test_harvest_hermes.py with sanitized synthetic state.db fixture:
* 6 core harvest tests (engine-session filtering, scope, since_iso, limit,
digest content, missing db)
* 7 schema-drift variants (no_title, no_tool_name, extra_columns,
no_messages_table, no_sessions_table, schema_version_25, text_epochs)
- Fix harvest_hermes.py: graceful handling of missing tables/columns
(_fetch_messages catches OperationalError for missing tool_name or table;
harvest_hermes catches missing sessions table and missing title column)
- Register pytest 'slow' marker in pyproject.toml1 parent 038595a commit 7df4e24
4 files changed
Lines changed: 776 additions & 33 deletions
File tree
- skillopt_sleep
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
52 | 71 | | |
53 | 72 | | |
54 | 73 | | |
| |||
202 | 221 | | |
203 | 222 | | |
204 | 223 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
212 | 246 | | |
213 | 247 | | |
214 | 248 | | |
| |||
0 commit comments