test_check_ok_stress.py
python
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1
docs: MuseHub-first before ISR #74 — staging solidify NEXT
Human
11 hours ago
| 1 | """Stress — many sequential Check-if-OK scaffolds stay isolated.""" |
| 2 | |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | from datetime import date |
| 6 | from pathlib import Path |
| 7 | |
| 8 | from tools.check_ok.scaffold import scaffold_side_check |
| 9 | |
| 10 | |
| 11 | def test_many_topics_do_not_collide(tmp_path: Path) -> None: |
| 12 | paths = set() |
| 13 | for i in range(40): |
| 14 | result = scaffold_side_check( |
| 15 | tmp_path, |
| 16 | topic=f"topic-{i}", |
| 17 | today=date(2026, 7, 17), |
| 18 | ) |
| 19 | assert result.created is True |
| 20 | paths.add(result.rel_path) |
| 21 | assert len(paths) == 40 |
File History
1 commit
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1
docs: MuseHub-first before ISR #74 — staging solidify NEXT
Human
11 hours ago