Skip to content

Commit

Permalink
remove useless added test
Browse files Browse the repository at this point in the history
  • Loading branch information
Meriem JEBALI authored and Meriem JEBALI committed Sep 4, 2024
1 parent 6b8d345 commit 4ddfb9c
Showing 1 changed file with 0 additions and 96 deletions.
96 changes: 0 additions & 96 deletions tests/unit/test_simple_condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,38 +93,6 @@
{"IGNORED_RULE_1", "IGNORED_RULE_2"},
{"admission": {"admission": False}},
),
(
{
"age": 0,
"power": "nothing",
"language": "french",
"favorite_meal": "Spinach",
},
"simple_cond_conf/default",
None,
{
"admission": {"admission": False},
"course": {"course_id": "international"},
"email": None,
},
),
(
{
"age": 0,
"power": "nothing",
"language": "french",
"favorite_meal": "Spinach",
},
"simple_cond_conf/default",
None,
{
"admission": {"admission": False},
"course": {
"course_id": "international",
},
"email": None,
},
),
],
)
def test_simple_condition(input_data, config_dir, ignored_rules, good_results, base_config_path):
Expand Down Expand Up @@ -202,70 +170,6 @@ def test_simple_condition(input_data, config_dir, ignored_rules, good_results, b
"email": True,
},
),
(
{
"age": 100,
"language": "french",
"power": "strength",
"favorite_meal": "Spinach",
},
{
"verbosity": {
"rule_set": "default_rule_set",
"results": [
{
"rule_group": "admission",
"verified_conditions": {
"condition": {"expression": None, "values": {}},
"simple_condition": {
"expression": (
'input.power=="strength" or input.power=="fly" or input.'
'power=="time-manipulation"'
),
"values": {
'input.power=="strength"': True,
'input.power=="fly"': False,
'input.power=="time-manipulation"': False,
},
},
},
"activated_rule": "ADM_OK",
"action_result": {"admission": True},
},
{
"rule_group": "course",
"verified_conditions": {
"condition": {"expression": None, "values": {}},
"simple_condition": {
"expression": "input.age>=100 or input.age==None",
"values": {"input.age==None": False, "input.age>=100": True},
},
},
"activated_rule": "COURSE_SENIOR",
"action_result": {"course_id": "senior"},
},
{
"rule_group": "email",
"verified_conditions": {
"condition": {"expression": None, "values": {}},
"simple_condition": {
"expression": "input.favorite_meal!=None and not output.admission.admission==False",
"values": {
"input.favorite_meal!=None": True,
"output.admission.admission==False": False,
},
},
},
"activated_rule": "EMAIL_COOK",
"action_result": True,
},
],
},
"admission": {"admission": True},
"course": {"course_id": "senior"},
"email": True,
},
),
],
)
def test_simple_condition_verbose(input_data, good_results, base_config_path):
Expand Down

0 comments on commit 4ddfb9c

Please sign in to comment.