Skip to content
Myr

Merge pull request #4613 from citramon/test_for_from_mapping_config_skip_not_upper

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

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

authored by David Lord · committed by GitHub · parents 1888df3, 3ecebcd · 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