mlm_insights.tests.selectors.interfaces package¶
Submodules¶
mlm_insights.tests.selectors.interfaces.selector_base module¶
- class mlm_insights.tests.selectors.interfaces.selector_base.SelectorBase¶
Bases:
ABC
Abstract Base class for Selector Interface. A Test Selector is an Insights Test component responsible for querying metric value(s) from metric/data sources.
Child class must implement query and validate methods.
- abstract query(test_context: TestContext, *args: Any, **kwargs: Any) SelectorResult ¶
This method query the metric data from the source.
Parameters¶
- test_contextTestContext
Selector specific text context, This test context helps selector to query data.
- args:
Additional arguments, implemented as per child class.
- kwargs:
Key-value pair for dynamic arguments
Returns¶
SelectorResult
- abstract validate(test_context: TestContext, *args: Any, **kwargs: Any) SelectorValidationResult ¶
Implement validate method to provide any pre-validation of selectors.
Parameters¶
- test_contextTestContext
Selector specific text context.
- args:
Additional arguments, implemented as per child class.
- kwargs:
Key-value pair for dynamic arguments
Returns¶
ValidationResult