Skip to content

Commit 0052c66

Browse files
Gerald W. LesterGerald W. Lester
Gerald W. Lester
authored and
Gerald W. Lester
committed
Resolve conflict
1 parent 991480b commit 0052c66

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/functional/feature_flags/test_feature_flags.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,18 @@ def test_get_feature_toggle_propagates_access_denied_error(mocker, config):
587587
# THEN raise StoreClientError error
588588
with pytest.raises(StoreClientError, match="AccessDeniedException") as err:
589589
feature_flags.evaluate(name="Foo", default=False)
590+
591+
def test_get_configuration_with_envelope_and_raw(mocker, config):
592+
expected_value = True
593+
mocked_app_config_schema = {"log_level": "INFO", "features": {"my_feature": {"default": expected_value}}}
594+
feature_flags = init_feature_flags(mocker, mocked_app_config_schema, config, envelope="features")
595+
596+
features_config = feature_flags.get_configuration()
597+
config = feature_flags.store.get_raw_configuration
590598

599+
assert "log_level" in config
600+
assert "log_level" not in features_config
601+
591602
##
592603
## Inequality test cases
593604
##

0 commit comments

Comments
 (0)