aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix reference to subprocessFilipp Lepalaan2017-01-271-1/+1
|
* Fix typo in comment.Brian Buck2016-08-241-1/+1
|
* Use the built-in Django tags for getting static and other media.Brian Buck2016-08-241-2/+3
|
* Configure settings in `tests/run.py` for Django 1.10+Brian Buck2016-08-241-0/+9
|
* Test rendered file deletion or persistence for both debug options.Josh2016-03-031-5/+22
|
* Add test for temporary file is closed/deleted.Josh2016-03-021-1/+25
|
* Remove extraneous try/except. Revert test run script changes, but set ↵Josh2016-02-261-28/+16
| | | | DEBUG=False.
* 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.