Commit graph

188 commits

Author SHA1 Message Date
Ben Jones
61263e08f9 Add datetime.date support to JSONEncoder 2015-01-23 07:44:17 -06:00
Parkayun
33534bb4a9 Happy New Year 2015 2015-01-02 11:35:00 +09:00
Michael Hall
98b155c65d Fixed #1288: app.add_url_rule() should look for OPTIONS methods in a case-insensitive manner 2014-12-26 08:58:35 -05:00
Marc Abramowitz
d9402fc0c0 Make jsonify terminate responses with a newline
This came up in the context of
https://github.com/kennethreitz/httpbin/issues/168
2014-12-07 14:37:26 -08:00
Markus Unterwaditzer
a1b273658d Merge pull request #1222 from defuz/templates_auto_reload-eq-none
Set TEMPLATE_AUTO_RELOAD default value to None
2014-11-02 20:46:48 +01:00
Petr Zemek
ec3d5800f2 Put two spaces before inline comments when there is only one space.
PEP8 (E261) suggests to use at least two spaces before inline comments.
2014-10-27 11:24:15 +01:00
Petr Zemek
4840fc0edc Change == None to is None.
PEP8 (E711) suggests that comparison to None should be `cond is None`.
2014-10-27 11:17:49 +01:00
Petr Zemek
e41bf1e181 Remove two redundant empty lines.
PEP8 suggests to use two empty lines to separate functions, not three.
2014-10-27 11:13:03 +01:00
defuz
f88765d504 set TEMPLATE_AUTO_RELOAD default value to None 2014-10-26 18:28:12 +03:00
defuz
5e8d503098 add tests for trim_namespace argument of app.config.get_namespace 2014-10-24 13:11:10 +04:00
Markus Unterwaditzer
bd232e5c82 PEP8 2014-10-21 19:11:54 +02:00
Gilman Callsen
d425279650 Improve compression by removing whitespace from separators when using jsonify() and JSONIFY_PRETTYPRINT_REGULAR is False.
Commit includes Changelog entry and two new tests in test_basic.py.
2014-10-21 19:11:06 +02:00
INADA Naoki
4d4a639ba4 Add test for deprecated flask.Request properties. 2014-10-15 03:32:04 +09:00
Davide Ceretti
93c190a8fd Add unittest for appcontext_tearing_down signal 2014-10-07 07:34:19 +01:00
Markus Unterwaditzer
c6795eb626 Remove useless unittest imports 2014-09-21 16:47:38 +02:00
Paulo Bu
3f67fe94f1 Adds 2 tests for Flask.run method 2014-09-14 17:27:19 +02:00
Markus Unterwaditzer
192da325f8 Testsuite is not a package 2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
56db3ddf4e Remove useless imports 2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
be42d5665e Split instance tests off into own file 2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
a4931ff3a7 Kill class in test_basic 2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
71dae37733 Kill classes in test_regression 2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
f8a778deae Kill classes in test_testing 2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
77d887526d Rename fixture apps_tmpdir 2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
a00ccdce94 Remove more test_apps 2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
b88a837674 Remove fake extensions from test_apps 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
4ea4ea7f93 Remove old helper function 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
861aa0db1f Init global test_apps explicitly 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
588cfa9c91 Add note to memleak tests 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
03339501ab Remove obsolete apps 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
af4cb0ff2b Remove flask superclass 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
af41dbe0c4 Remove useless classes 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
d0cf5ef394 WIP 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
e77bc2d86c Remove class from test_views 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
7e8f1053bb Fix assertion error 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
5da2c00419 Rewrite assertion methods 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
dd6b2574c9 Rework test_signals 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
b1c0951ad6 Move fixtures 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
ba82bac3d8 Rework test_config 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
df711eac90 Some fixes 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
8fa5e32d9a Tests pass now. 2014-09-11 22:09:50 +02:00
Markus Unterwaditzer
961db8ad72 Made tests recognizable 2014-09-11 22:09:50 +02:00
Markus Unterwaditzer
3550b26071 Move tests 2014-09-11 22:09:50 +02:00
Armin Ronacher
4cb6eea8f1 Split up testsuite and moved it to flask.testsuite. This fixes #246 2011-08-26 11:21:26 +01:00
Armin Ronacher
ef0f626f0a Added flask.views.View.decorators to automatically decorate class based views. 2011-08-25 22:09:48 +01:00
Armin Ronacher
485a6c332b Moved testcase for test client context binding to the TestToolsTestCase 2011-08-25 20:49:53 +01:00
Armin Ronacher
8dbd71ef8e Added a testcase where SERVER_NAME and APPLICATION_ROOT are not set 2011-08-25 20:48:38 +01:00
Armin Ronacher
e853a0f739 The test client and test_request_context are now both using the same logic internally for creating the environ. Also they use APPLICATION_ROOT now. 2011-08-25 20:47:50 +01:00
Armin Ronacher
f051939d8b Test that we're not leaking a request context in the testsuite, fixed a leak 2011-08-25 15:24:10 +01:00
Armin Ronacher
001a5128d8 Refactored tests to use a different subclass 2011-08-25 15:20:40 +01:00
Armin Ronacher
a5da2c98f3 Implemented flask.testing.TestClient.session_transaction for quick session modifications in test environments. 2011-08-25 15:18:39 +01:00