devkit_ui.missions.test_yaml
Functions
|
Run _coerce_record with its stdout warnings suppressed. |
Classes
|
MissionYamlStore whose background writer never touches the disk. |
|
|
|
In-memory behaviour; nothing is written to disk. |
|
Real writes. |
- class devkit_ui.missions.test_yaml.NoDiskYamlStore(path: str, on_write_done: Callable[[str], None])[source]
Bases:
MissionYamlStoreMissionYamlStore whose background writer never touches the disk.
Every mutation queues a write to a daemon thread that outlives the test. Overriding the writer, rather than patching it for the duration of a test, means a late write can never recreate a temporary directory that has already been cleaned up.
- class devkit_ui.missions.test_yaml.TestMissionYamlStore(methodName='runTest')[source]
Bases:
TestCaseIn-memory behaviour; nothing is written to disk.