flask/tests
Michael Recachinas bd5e297aa9 Default environ (#2047)
* Add init to FlaskClient

This addresses #1467. The init in the subclass
can now take in `environ_base`, which will then get
passed to `make_test_environ_builder` and to
`EnvironBuilder` via keyword args.

This should provide the default environment capability
on `app.test_client()` init.

* Add kwarg `environ_base` to `make_test_environ_builder` call

This change now passes `environ_base` from either
`kwargs` in `FlaskClient.open` or `FlaskClient.environ_base`
if passed into the init.

* Fix assignment reference typo

* Add default `environ_base` to `FlaskClient.__init__`

* Set default kwargs for `environ_base` in `FlaskClient.open`

* Remove specific environ_base kwarg since its in kwargs

* Add docstring to FlaskClient detailing environ_base

* Document app.test_client default environ in CHANGES

* Re-word environ_base changes in FlaskClient docstring

* Add client.environ_base tests

* Mention preset default environ in `app.test_client`

* Add versionchanged directive to docstring in FlaskClient
2016-10-12 08:54:24 +02:00
..
static Move tests 2014-09-11 22:09:50 +02:00
templates Enable autoescape for render_template_string 2015-07-04 23:41:43 +02:00
test_apps Forward ported CLI tests from Flask-CLI and fixed a bug with the CLI's name. (#1806) 2016-05-16 19:36:55 +02:00
conftest.py Eliminate some resource warnings 2016-06-03 14:29:27 +02:00
test_appctx.py Improve application context popping 2016-05-26 21:46:56 +02:00
test_basic.py Corrected after response for error handlers 2016-09-08 11:56:02 +03:00
test_blueprints.py Use pytest.raises() instead of try/catch with asser 0 2016-03-04 13:30:40 +02:00
test_cli.py Add test for get_version (CLI) (#1884) 2016-08-20 17:43:58 +02:00
test_config.py Use pytest.raises() instead of try/catch with asser 0 2016-03-04 13:30:40 +02:00
test_deprecations.py Use recwarn everywhere 2016-06-03 13:59:47 +02:00
test_ext.py Use recwarn everywhere 2016-06-03 13:59:47 +02:00
test_helpers.py make use of range requests if available in werkzeug (#2031) 2016-09-26 12:43:46 +02:00
test_instance_config.py Happy New Year 2015 2015-01-02 11:35:00 +09:00
test_regression.py Always run gc before leak test 2016-05-22 10:34:48 +02:00
test_reqctx.py Use pytest.raises() instead of try/catch with asser 0 2016-03-04 13:30:40 +02:00
test_signals.py Ignore before_render_template return values 2015-06-17 15:42:39 +02:00
test_subclassing.py Happy New Year 2015 2015-01-02 11:35:00 +09:00
test_templating.py Enable autoescape for render_template_string 2015-07-04 23:41:43 +02:00
test_testing.py Default environ (#2047) 2016-10-12 08:54:24 +02:00
test_user_error_handler.py Handle empty deque on errorhandler lookup. 2015-06-02 16:13:30 -04:00
test_views.py Happy New Year 2015 2015-01-02 11:35:00 +09:00