Skip to content

Commit 2d26fbb

Browse files
author
Bilal Al
committed
added more tests
1 parent 7c4844a commit 2d26fbb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/models/test_splits.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,11 @@ def test_incorrect_matcher(self):
125125
split = copy.deepcopy(self.raw)
126126
split['conditions'][0]['matcherGroup']['matchers'][0]['matcherType'] = 'INVALID_MATCHER'
127127
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)
128135
assert parsed.conditions[0].to_json() == splits._DEFAULT_CONDITIONS_TEMPLATE

0 commit comments

Comments
 (0)