runtraj.stages.check_stage#

runtraj.stages.check_stage(stage, config)[source]#

Check that stage keeps the promises the worker and the output directory rely on, for one config.

Call it from the tests of a stage of your own, with a config as Stage.resolve() returns it, once for each kind of setting the stage has. It checks that the record Stage.settings() writes is plain data, and that Stage.config_class reads it back to a config with the same record: a stored settings folder is found that way, so a stage that breaks it finds none of its results.

Raises:

AssertionError – Saying which promise is broken.

Return type:

None

Parameters: