summary refs log tree commit diff
path: root/tests/test_preview.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Run Black. (#5482)Amber Brown2019-06-201-68/+68
|
* Run black.black2018-08-101-38/+17
|
* run isortAmber Brown2018-07-091-3/+4
|
* Fix crash in url preview when html tag has no textMarcin Bachry2016-12-141-0/+50
| | | | Signed-off-by: Marcin Bachry <hegel666@gmail.com>
* test_preview: Fix incorrect wrappingJohannes Löthberg2016-12-051-2/+2
| | | | | | | The old test expected an incorrect wrapping due to the preview function not using unicode properly, so it got the wrong length. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* Make test_preview use unicode stringsJohannes Löthberg2016-12-051-68/+68
| | | | Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* Fix up preview URL API. Add tests.Erik Johnston2016-08-161-1/+79
| | | | | | | | | This includes: - Splitting out methods of a class into stand alone functions, to make them easier to test. - Adding unit tests to split out functions, testing HTML -> preview. - Handle the fact that elements in lxml may have tail text.
* Test summarizationErik Johnston2016-08-041-0/+139