We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c4844a commit 2d26fbbCopy full SHA for 2d26fbb
tests/models/test_splits.py
@@ -125,4 +125,11 @@ def test_incorrect_matcher(self):
125
split = copy.deepcopy(self.raw)
126
split['conditions'][0]['matcherGroup']['matchers'][0]['matcherType'] = 'INVALID_MATCHER'
127
parsed = splits.from_raw(split)
128
+ assert parsed.conditions[0].to_json() == splits._DEFAULT_CONDITIONS_TEMPLATE
129
+
130
+ # using multiple conditions
131
+ split = copy.deepcopy(self.raw)
132
+ split['conditions'].append(split['conditions'][0])
133
+ split['conditions'][0]['matcherGroup']['matchers'][0]['matcherType'] = 'INVALID_MATCHER'
134
+ parsed = splits.from_raw(split)
135
assert parsed.conditions[0].to_json() == splits._DEFAULT_CONDITIONS_TEMPLATE
0 commit comments