imas_validator.rules.ast_rewrite.run_path¶
- imas_validator.rules.ast_rewrite.run_path(rule_path: Path, val_registry: ValidatorRegistry, result_collector: ResultCollector) dict¶
Run the file corresponding to the given path with rewritten assert statements. Any found validator tests will be added to the given ValidatorRegistry
- Parameters:
- rule_path: Path¶
Path to file that contains IMAS-Validator tests
- val_registry: ValidatorRegistry¶
ValidatorRegistry in which the found tests will be placed
- result_collector: ResultCollector¶
ResultCollector where the found tests will deposit their results after being run
- Returns:
globals() object of given file
Last update:
2025-08-29