/tg/ Station 13 - Modules - Types

code/modules/unit_tests/~nova/preferences_import.dm

/datum/unit_test/preferences_import_replacementReal file writes verify that rejected imports preserve the original and successful replacements are complete.
/datum/unit_test/preferences_import_filesKeep every filesystem fixture separate from player saves and remove it even after an assertion fails. Backup fixtures use distinct text markers to verify file retention and ownership.
/datum/unit_test/preferences_import_files/with_clientMock-client construction registers persistent datums; isolate and restore those registries too.