Skip to content

Commit 6fccf99

Browse files
committed
updated test
1 parent f3e9137 commit 6fccf99

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/engine/files/rule_base_segments2.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
"name": "no_excludes",
3838
"status": "ACTIVE",
3939
"trafficTypeName": "user",
40+
"excluded":{
41+
"keys":["bilal2"],
42+
"segments":[]
43+
},
4044
"conditions": [
4145
{
4246
"matcherGroup": {

tests/engine/test_evaluator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ def test_using_rbs_in_excluded(self):
313313
assert e.eval_with_context('bilal@split.io', 'bilal@split.io', 'some', {'email': 'bilal@split.io'}, ctx)['treatment'] == "off"
314314
ctx = evaluation_facctory.context_for('bilal', ['some'])
315315
assert e.eval_with_context('bilal', 'bilal', 'some', {'email': 'bilal'}, ctx)['treatment'] == "on"
316+
ctx = evaluation_facctory.context_for('bilal2', ['some'])
317+
assert e.eval_with_context('bilal2', 'bilal2', 'some', {'email': 'bilal2'}, ctx)['treatment'] == "off"
316318

317319
@pytest.mark.asyncio
318320
async def test_evaluate_treatment_with_rbs_in_condition_async(self):

0 commit comments

Comments
 (0)