Commit graph

29 commits

Author SHA1 Message Date
Ivan Velichko
daa3f272da Allow to specify subdomain and/or url_scheme in app.test_request_context() 2015-11-20 19:43:49 +03:00
Armin Ronacher
d094d5b6fc Fixed warning and broken tests on 3.3 2014-02-08 22:29:46 +00:00
Armin Ronacher
6de9484c97 Fixed a typo 2014-02-08 17:32:54 +00:00
Armin Ronacher
e7c587789a Fixe a bug in the test client causing url parameters to be removed. This fixes #968 2014-02-08 17:19:00 +00:00
Daniel Neuhäuser
52098e1e4f Happy New Year 2014 2014-01-02 19:21:07 +01:00
Thomas Waldmann
ac04bc7836 replace 1/0 by 1 // 0 to get rid of DeprecationWarning (and PEP8 issue) 2013-05-26 20:33:22 +02:00
Daniel Neuhäuser
a0801719f8 Remove six dependency 2013-05-22 21:40:30 +02:00
Daniel Neuhäuser
62e7275bdf Use assert_false where appropriate 2013-05-22 20:17:29 +02:00
Daniel Neuhäuser
9f8a2075c7 Use assert_in where appropriate 2013-05-22 20:12:50 +02:00
Daniel Neuhäuser
8e9f0bdedc Use assert_equal instead of assertEquals
assertEquals is deprecated and its use inconsistent
2013-05-22 17:30:37 +02:00
Daniel Neuhäuser
239780be28 Use assert_true instead of assert_
assert_ is deprecated which causes annoying warnings
2013-05-22 17:23:38 +02:00
Daniel Neuhäuser
5b89355b1c Response data is bytes 2013-05-22 17:14:07 +02:00
Markus Unterwaditzer
05f66ad735 Fix some literals 2013-05-22 17:09:37 +02:00
Thomas Waldmann
e1d356fb71 ported some more stuff to py 3.3
removed init_jinja_globals hack from app.py after consulting mitsuhiko
(didn't work on py 3.3 "as is")

removed with_statement future imports, not needed any more

needs more work on 2.7 as well as on 3.3
2013-05-22 01:33:04 +02:00
Daniel Neuhäuser
8494574fdf Merge branch 'six' of github.com:ThomasWaldmann/flask into ThomasWaldmann-six
Conflicts:
	flask/testsuite/__init__.py
2013-05-18 18:54:45 +02:00
Thomas Waldmann
522cd00093 python-modernize automated changes: fix_unicode (but without six.u()) 2013-05-18 18:12:30 +02:00
Thomas Waldmann
6caaa8a527 automated change using python-modernize: use 'as' in except 2013-05-18 16:24:40 +02:00
Armin Ronacher
4f1cb42123 make_test_environ_builder when used with subdomains was not working correctly, now it uses urlparse module for detecting full URL and changing path and base_url correctly 2012-10-07 12:48:19 +02:00
Armin Ronacher
c90858a95d Added a branch to test functionality enabled by new test client 2011-11-28 22:48:14 +01:00
Armin Ronacher
9c8f138a42 Improved test coverage for the test client 2011-11-25 21:08:19 +01:00
Priit Laes
9dd61eea6b Added testcase for redirect and session keeparound bug 2011-11-10 10:59:32 +02:00
Armin Ronacher
7b899c8510 Merge pull request #309 from embe/master
Fix session loading in flask.testing.TestClient.session_transaction()
2011-09-07 02:44:08 -07:00
Ron DuPlain
37f9cb9ca6 Import with statement in testsuite, Python 2.5. 2011-09-01 12:35:04 -04:00
Michał Bartoszkiewicz
4dc1796b1c Fixed session loading in flask.testing.TestClient.session_transaction() 2011-08-29 21:39:31 +02:00
Armin Ronacher
d49221bf2e The test client now properly pops response contexts on __exit__ 2011-08-26 14:01:46 +01:00
Armin Ronacher
c8ec453d86 Require that cookies are enabled in the test client for session transactions 2011-08-26 13:47:01 +01:00
Armin Ronacher
fc2caa4b9c Changed assert to self.assert_ where it was still in place 2011-08-26 11:43:27 +01:00
Armin Ronacher
3069e2d7f7 Fight the generic asserts! 2011-08-26 11:38:43 +01:00
Armin Ronacher
4cb6eea8f1 Split up testsuite and moved it to flask.testsuite. This fixes #246 2011-08-26 11:21:26 +01:00