The MetadataCheck class needs integration tests to verify that it correctly validates configurations, runs checks against records, and produces properly formatted results.
Test Cases to Implement
-
Configuration Validation
- Test validation of valid configurations
- Test validation of configurations with invalid rules
- Test validation of non-dictionary configurations
- Test validation of configurations without rules
-
Check Execution
- Test running checks with empty rules
- Test running checks with valid rules
- Test running checks with rules that have conditions
- Test running checks with rules that should fail
- Test that rule evaluation errors are properly handled
-
Result Generation
- Test that check results include all necessary fields
- Test that success is correctly determined based on rule levels
- Test that rule results are properly formatted
The
MetadataCheckclass needs integration tests to verify that it correctly validates configurations, runs checks against records, and produces properly formatted results.Test Cases to Implement
Configuration Validation
Check Execution
Result Generation