From 3ecebcdf8de02818cd409afd6edd39a09248b3ef Mon Sep 17 00:00:00 2001 From: Stanislav Bushuev Date: Tue, 31 May 2022 17:51:39 +0200 Subject: [PATCH] Add test config.from_mapping method: ignoring items with non-upper keys --- tests/test_config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_config.py b/tests/test_config.py index 944b93d7..cd856b2b 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -113,6 +113,10 @@ def test_config_from_mapping(): app.config.from_mapping(SECRET_KEY="config", TEST_KEY="foo") common_object_test(app) + app = flask.Flask(__name__) + app.config.from_mapping(SECRET_KEY="config", TEST_KEY="foo", skip_key="skip") + common_object_test(app) + app = flask.Flask(__name__) with pytest.raises(TypeError): app.config.from_mapping({}, {})