Commit ecf45a2
committed
fix(test): split unsafe persona_id test — ValueError for dot-prefix
The original test expected '../weird id/with slashes' to be sanitized
and stored, but the production code correctly rejects IDs that sanitize
to filenames starting with '.' (hidden files = security concern).
Split into two tests:
1. test_persona_id_with_slashes_and_spaces_is_sanitized — tests '/' and ' '
2. test_persona_id_starting_with_dot_raises_valueerror — tests ValueError
CEO-Session 2026-05-131 parent ee512cf commit ecf45a2
1 file changed
Lines changed: 20 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
| 332 | + | |
333 | 333 | | |
334 | | - | |
335 | | - | |
| 334 | + | |
| 335 | + | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
| 338 | + | |
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
350 | | - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
0 commit comments