aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf/tests/tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix unidecode bytes error on python2Padraic Harley2015-12-181-4/+16
| | | | | | | | | | | | | | | | | | `bytes` takes no additional args in python2 unlike it's taking an encoding in python3. Unidecode returns a unicode string in python3 and a bytestring in python2 which, I believe, was the main cause of error #71. Now, regardless of whether unidecode is included, all strings passing through http_quote will be encoded to ascii which should fix both issues. Also included is a fix for a failing test when unidecode is used. Unidecode's `_unidecode` function ignores characters greater than 0xefff, which '\xe2\x99\xa5' (the heart symbol) is. This caused users with unidecode to fail '.pdf' was produced rather than the expected '?.pdf'.
* Extracted logic from views - fixed tests.Jonathan Liuti2015-12-011-16/+14
| | | | | | | | | | | The logic was coupled with the views which made things difficult to reuse if you wanted to use the pdf generation somehwere else than in a view. With this patch, the logic has been moved to `utils.py` and should be more easy to reuse. Tests have been adapted and made compatible with django > 1.7
* Makes tests.py lines 80 columns max.Michel Sabchuk2014-09-011-4/+10
|
* Makes unicode content views testing fails too.Michel Sabchuk2014-09-011-5/+18
| | | | | | The view didn't define any title in context and the templates itself doen't have unicode content. I forced it making a view with a unicode title in context.
* Add failing test of unicode content.Michel Sabchuk2014-09-011-0/+11
|
* Aligned test to code update.Paolo Melchiorre2014-07-031-4/+1
|
* Bring back the test assert for title in contentMatt Lenc2014-06-191-2/+3
|
* Add support for Python3Matt Lenc2014-06-181-17/+18
|
* DRY on testsmattack1082013-01-151-140/+43
|
* Fix tests and add new ones for show_content_in_browser featuremattack1082013-01-151-172/+243
|
* Add a test for unicode.Marc Tamlyn2012-08-311-0/+33
| | | | This isn't great but better than nothing...
* Move tests into wkhtmltopdf.tests.*Marc Tamlyn2012-08-031-0/+272
Fixes #11.