Skip to content
Myr

Add test config.from_mapping method: ignoring items with non-upper keys

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Stanislav Bushuev · committed by Stanislav Bushuev · parent 1888df3 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • tests:+4 added−0 removed

1 file+4 added−0 removed

modified:tests/test_config.py+4 added
112 unmodified lines
113 app.config.from_mapping(SECRET_KEY="config", TEST_KEY="foo")114 common_object_test(app)115116 app = flask.Flask(__name__)117 app.config.from_mapping(SECRET_KEY="config", TEST_KEY="foo", skip_key="skip")118 common_object_test(app)119120 app = flask.Flask(__name__)121 with pytest.raises(TypeError):122 app.config.from_mapping({}, {})123124
134 unmodified lines