@@ -29,7 +29,6 @@ def init_configuration_store(mocker, mock_schema: Dict, config: Config) -> Confi
29
29
def test_toggles_rule_does_not_match (mocker , config ):
30
30
expected_value = "True"
31
31
mocked_app_config_schema = {
32
- "log_level" : "DEBUG" ,
33
32
"features" : {
34
33
"my_feature" : {
35
34
"feature_default_value" : expected_value ,
@@ -59,7 +58,7 @@ def test_toggles_rule_does_not_match(mocker, config):
59
58
# you get the default value of False that was sent to the get_feature_toggle API
60
59
def test_toggles_no_restrictions_feature_does_not_exist (mocker , config ):
61
60
expected_value = False
62
- mocked_app_config_schema = {"log_level" : "DEBUG" , " features" : {"my_fake_feature" : {"feature_default_value" : "True" }}}
61
+ mocked_app_config_schema = {"features" : {"my_fake_feature" : {"feature_default_value" : "True" }}}
63
62
64
63
conf_store = init_configuration_store (mocker , mocked_app_config_schema , config )
65
64
toggle = conf_store .get_feature_toggle (feature_name = "my_feature" , rules_context = {}, value_if_missing = expected_value )
@@ -70,7 +69,7 @@ def test_toggles_no_restrictions_feature_does_not_exist(mocker, config):
70
69
# default value is False but the feature has a True default_value.
71
70
def test_toggles_no_rules (mocker , config ):
72
71
expected_value = "True"
73
- mocked_app_config_schema = {"log_level" : "DEBUG" , " features" : {"my_feature" : {"feature_default_value" : expected_value }}}
72
+ mocked_app_config_schema = {"features" : {"my_feature" : {"feature_default_value" : expected_value }}}
74
73
conf_store = init_configuration_store (mocker , mocked_app_config_schema , config )
75
74
toggle = conf_store .get_feature_toggle (
76
75
feature_name = "my_feature" , rules_context = {"tenant_id" : "6" , "username" : "a" }, value_if_missing = False
@@ -82,7 +81,6 @@ def test_toggles_no_rules(mocker, config):
82
81
def test_toggles_restrictions_no_match (mocker , config ):
83
82
expected_value = "True"
84
83
mocked_app_config_schema = {
85
- "log_level" : "DEBUG" ,
86
84
"features" : {
87
85
"my_feature" : {
88
86
"feature_default_value" : expected_value ,
@@ -117,7 +115,6 @@ def test_toggles_restrictions_rule_match_equal_multiple_restrictions(mocker, con
117
115
tenant_id_val = "6"
118
116
username_val = "a"
119
117
mocked_app_config_schema = {
120
- "log_level" : "DEBUG" ,
121
118
"features" : {
122
119
"my_feature" : {
123
120
"feature_default_value" : "True" ,
@@ -160,7 +157,6 @@ def test_toggles_restrictions_rule_match_equal_multiple_restrictions(mocker, con
160
157
def test_toggles_restrictions_no_rule_match_equal_multiple_restrictions (mocker , config ):
161
158
expected_val = "True"
162
159
mocked_app_config_schema = {
163
- "log_level" : "DEBUG" ,
164
160
"features" : {
165
161
"my_feature" : {
166
162
"feature_default_value" : expected_val ,
@@ -199,7 +195,6 @@ def test_toggles_restrictions_rule_match_multiple_actions_multiple_rules_multipl
199
195
expected_value_third_check = "False"
200
196
expected_value_fourth_case = False
201
197
mocked_app_config_schema = {
202
- "log_level" : "DEBUG" ,
203
198
"features" : {
204
199
"my_feature" : {
205
200
"feature_default_value" : expected_value_third_check ,
@@ -281,7 +276,6 @@ def test_toggles_restrictions_rule_match_multiple_actions_multiple_rules_multipl
281
276
def test_toggles_match_rule_with_contains_action (mocker , config ):
282
277
expected_value = True
283
278
mocked_app_config_schema = {
284
- "log_level" : "DEBUG" ,
285
279
"features" : {
286
280
"my_feature" : {
287
281
"feature_default_value" : expected_value ,
@@ -313,7 +307,6 @@ def test_toggles_match_rule_with_contains_action(mocker, config):
313
307
def test_toggles_no_match_rule_with_contains_action (mocker , config ):
314
308
expected_value = False
315
309
mocked_app_config_schema = {
316
- "log_level" : "DEBUG" ,
317
310
"features" : {
318
311
"my_feature" : {
319
312
"feature_default_value" : expected_value ,
0 commit comments