aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix premature file delete on DEBUG=False. Modify test runner to check both ↵Josh2016-02-261-14/+26
| | | | DEBUG options.
* Merge pull request #99 from pauricthelodger/bytes-errorMax Peterson2016-02-191-2/+14
|\ | | | | Fix unidecode bytes error on python2
| * Fix py26 bug and copypasta errorPadraic Harley2016-01-291-2/+2
| | | | | | | | Python 2.6 doesn't allow empty format arguments: ``{}`` must be ``{0}``. Also second test is ``inline`` rather than ``attachment``.
| * Assert once but get the filename from the ImportErrorPadraic Harley2016-01-291-8/+8
| | | | | | It was pointed out that instead setting the filename from the ``except/else`` makes what's being tested much clearer.
| * 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'.
* | Remove dependency on Django template engineRyan Kaskel2016-02-171-1/+2
|/
* 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
* Enable tests to run with Django >= 1.7 and silence warningsTim Bell2015-10-211-0/+12
|
* 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
|
* colour-runner dependency doesn't work on py2.6Matt Lenc2014-06-181-6/+1
| | | | DAMN IT
* Make teh tests run rightMatt Lenc2014-06-181-0/+43
| | | | Because Django 1.6 and other fireworks.
* Support moar DjangoMatt Lenc2014-06-181-1/+0
| | | | The future is now ;]
* Update test reqs for Django with py3k supportMatt Lenc2014-06-181-1/+1
| | | | | In near future we should support moar Djangos (and using Travis for this).
* Add support for Python3Matt Lenc2014-06-181-17/+18
|
* Merge branch 'master' of github.com:incuna/django-wkhtmltopdf into travis-setupmattack1082013-01-162-179/+154
|\
| * DRY on testsmattack1082013-01-151-140/+43
| |
| * Fix tests and add new ones for show_content_in_browser featuremattack1082013-01-152-174/+246
| |
* | Move requirements file to test project, update travis.ymlmattack1082013-01-151-0/+1
|/
* Add a test for unicode.Marc Tamlyn2012-08-312-0/+41
| | | | This isn't great but better than nothing...
* Move tests into wkhtmltopdf.tests.*Marc Tamlyn2012-08-035-0/+281
Fixes #11.