Antonio Larrosa
bf023e7dc0
Remove unidecode dependency and use unicodedata instead
...
I found a way to remove the unidecode dependency without sacrificing
much by using unicodedata.normalize .
2017-03-30 17:32:21 +02:00
Antonio Larrosa
0049922f2e
Fix send_file to work with non-ascii filenames
...
This commit implements https://tools.ietf.org/html/rfc2231#section-4 in
order to support sending unicode characters. Tested on both Firefox and
Chromium under Linux.
This adds unidecode as a dependency, which might be relaxed by using
.encode('latin-1', 'ignore') but wouldn't be as useful.
Also, added a test for the correct headers to be added.
Previously, using a filename parameter to send_file with unicode characters, it
failed with the next error since HTTP headers don't allow non latin-1 characters.
Error on request:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/werkzeug/serving.py", line 193, in run_wsgi
execute(self.server.app)
File "/usr/lib/python3.6/site-packages/werkzeug/serving.py", line 186, in execute
write(b'')
File "/usr/lib/python3.6/site-packages/werkzeug/serving.py", line 152, in write
self.send_header(key, value)
File "/usr/lib64/python3.6/http/server.py", line 509, in send_header
("%s: %s\r\n" % (keyword, value)).encode('latin-1', 'strict'))
UnicodeEncodeError: 'latin-1' codec can't encode character '\uff0f' in position 58: ordinal not in range(256)
Fixes #1286
2017-03-23 17:30:48 +01:00
vojtekb
95db82f8f7
py.test => pytest ( #2173 )
...
py.test => pytest
2017-02-09 18:34:16 +01:00
Markus Unterwaditzer
47e8410117
Merge pull request #2131 from wgwz/add-larger-app-ex
...
Add larger app ex
2017-01-15 05:56:12 +01:00
Andrew Arendt
01b992b1a1
Added python3.6 support for tests
2017-01-10 11:20:53 -06:00
wgwz
92fa444259
Moves largerapp into patterns dir and add test
...
- also adds this pattern into tox for testing
2016-12-31 12:08:25 -05:00
Markus Unterwaditzer
a4ed3d2806
Use tox from make test
2016-11-02 17:56:59 +01:00
Alex Kahan
6478d7bb99
Adding coverage generation to tox ( #2071 )
...
* Adding coverage generation to tox
* Removing test directory from coverage command
* Adding back to pytest command
2016-10-31 23:10:27 +01:00
Jeff Widman
9359e9f911
Remove unused Redbaron dependency ( #1967 )
2016-07-29 14:27:30 +02:00
James Farrington
f034d2e271
Tests with and without simplejson for every existing testenv ( #1869 )
2016-06-03 09:29:12 -07:00
David Lord
024fbe5a60
Revert "Adds simplejson as a testing target." ( #1865 )
2016-06-02 14:54:49 -07:00
James Farrington
390cd5e4ee
Fixed #1846
2016-06-02 11:58:02 -07:00
José Carlos García
567fff9d0d
Change to Pallets project
...
* Update CHANGES
* Update CONTRIBUTING.rst
* Update setup.py
* Update tox.ini
* Update extensions.rst
* Update security.rst
* Update installation.rst
* Update testing.rst
* Update upgrading.rst
* Update sidebarintro.html
* Update jquery.rst
* Update dbcon.rst
* Update index.rst
2016-04-03 23:11:38 +02:00
David Lord
d7b20e0ad7
use https instead of git protocol
...
git protocol is blocked on some networks
2015-12-03 16:40:46 -08:00
Timo Furrer
b8dc6c12b7
add python 3.5 build to travis config
2015-10-24 21:16:05 +02:00
Keyan Pishdadian
1479cf80f6
Move test file, add RedBaron to tox.ini
2015-02-12 13:06:45 -05:00
Markus Unterwaditzer
9e02a424b2
Add greenlet
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
a497b10d4f
Don't test old Werkzeug against py3
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
df711eac90
Some fixes
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
8d97d71430
Metadata change
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
ec863cef5b
Update tox
2014-09-11 22:09:50 +02:00
Daniel Neuhäuser
033b0931aa
Run tests with Python 3.4 with tox
2014-04-26 01:45:20 +02:00
Daniel Neuhäuser
16308bf675
Check links in the documentation with tox
2014-04-26 01:13:19 +02:00
Daniel Neuhäuser
c02c23ee30
Merge branch '0.10-maintenance'
...
Conflicts:
tox.ini
2013-06-27 16:52:34 +02:00
Daniel Neuhäuser
f88cc2d2f9
Fix broken test_appcontext_signals test case
...
This fixes #781 and ensures that Flask is tested with blinker installed.
2013-06-27 16:49:27 +02:00
Daniel Neuhäuser
88b74b376e
Don't use werkzeug dev version in tox anymore
...
We don't need the dev version anymore since the lastest werkzeug release
supports 3.3.
2013-06-19 17:24:02 +02:00
Armin Ronacher
6bd5dfad0c
Test Flask against werkzeug master
2013-05-30 21:39:54 +01:00
Daniel Neuhäuser
bb2e20f53f
Depends on itsdangerous>=0.12 now
2013-05-26 15:37:52 +02:00
Daniel Neuhäuser
884aad8ece
Test using itsdangerous with 3.x support
2013-05-22 16:33:05 +02:00
Daniel Neuhäuser
da5edad23a
Use werkzeug@sprint-branch in tox
2013-05-22 16:19:57 +02:00
Daniel Neuhäuser
323a840c5a
Add tox.ini
2013-05-18 18:27:49 +02:00
Armin Ronacher
6e4015d624
Removed tox file
2012-10-07 16:08:13 +02:00
Simon Sapin
ee6ed491d3
Have tox install simplejson for python 2.5
2012-03-19 00:52:33 +01:00
Ron DuPlain
96d7f20787
Fix tox warning, test "not installed in testenv".
2012-02-04 10:44:16 -05:00
Ron DuPlain
84b96ac9d3
Add pypy to tox.ini.
2012-02-04 10:37:58 -05:00
Armin Ronacher
c18f032a82
Added a tox-test command that runs Flask tests with tox
2010-07-27 01:29:21 +02:00