arjuna.engine.selection.rule module¶
- class arjuna.engine.selection.rule.AttrPatternRule(*, rule_str, target, condition, expression)¶
Bases:
arjuna.engine.selection.rule.RulePattern for executing a condition on an attribute value.
For example:
author is Rahul
- classmethod from_str(rule_str)¶
- matches(obj)¶
- class arjuna.engine.selection.rule.BoolAttrPatternRule(*, rule_str, target, condition, expression)¶
Bases:
arjuna.engine.selection.rule.RuleSimple Pattern for Boolean test attributes.
For example:
unstable not unstable
- classmethod from_str(rule_str)¶
- matches(obj)¶
- class arjuna.engine.selection.rule.IterablePatternRule(*, rule_str, container, target, condition, expression)¶
Bases:
arjuna.engine.selection.rule.RuleSimple Pattern for presence/absence of strings in iterables.
For example:
with tags a,b without tags a,b with bugs a,b without bugs a,b with envs a,b without envs a,b
with usertags a,b (found in info rather than object)
You can use singular version as well - tag/bug/env
- classmethod from_str(rule_str)¶
- matches(obj)¶
- property tags¶