Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix unidecode bytes error on python2 | Padraic Harley | 2015-12-18 | 1 | -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 Liuti | 2015-12-01 | 1 | -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 Sabchuk | 2014-09-01 | 1 | -4/+10 |
| | |||||
* | Makes unicode content views testing fails too. | Michel Sabchuk | 2014-09-01 | 1 | -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 Sabchuk | 2014-09-01 | 1 | -0/+11 |
| | |||||
* | Aligned test to code update. | Paolo Melchiorre | 2014-07-03 | 1 | -4/+1 |
| | |||||
* | Bring back the test assert for title in content | Matt Lenc | 2014-06-19 | 1 | -2/+3 |
| | |||||
* | Add support for Python3 | Matt Lenc | 2014-06-18 | 1 | -17/+18 |
| | |||||
* | DRY on tests | mattack108 | 2013-01-15 | 1 | -140/+43 |
| | |||||
* | Fix tests and add new ones for show_content_in_browser feature | mattack108 | 2013-01-15 | 1 | -172/+243 |
| | |||||
* | Add a test for unicode. | Marc Tamlyn | 2012-08-31 | 1 | -0/+33 |
| | | | | This isn't great but better than nothing... | ||||
* | Move tests into wkhtmltopdf.tests.* | Marc Tamlyn | 2012-08-03 | 1 | -0/+272 |
Fixes #11. |