linkchecker/tests
Chris Mayo 2f16152dc8 Improve test failure diff
Some url lines were missing a url prefix while others had a double url
prefix. diff was reporting more url lines as changed than actually had.
Improve formatting by removing newlines from control lines and adding
headings.

Before:

E   AssertionError: http://localhost:46031/tests/checker/data/sitemap.xml
E   ---
E
E   +++
E
E   @@ -1,4 +1,8 @@
E
E   -url http://localhost:46031/tests/checker/data/sitemap.xml
E   +http://www.example.com/
E   +cache key http://www.example.com/
E   +real url http://www.example.com/
E   +valid
E   +url url http://localhost:46031/tests/checker/data/sitemap.xml
E    cache key http://localhost:46031/tests/checker/data/sitemap.xml
E    real url http://localhost:46031/tests/checker/data/sitemap.xml
E    valid

After:

E   AssertionError: http://localhost:44021/tests/checker/data/sitemap.xml
E   --- expected
E   +++ result
E   @@ -2,3 +2,7 @@
E    cache key http://localhost:44021/tests/checker/data/sitemap.xml
E    real url http://localhost:44021/tests/checker/data/sitemap.xml
E    valid
E   +url http://www.example.com/
E   +cache key http://www.example.com/
E   +real url http://www.example.com/
E   +valid
2019-10-29 20:03:08 +00:00
..
cache add tests for urlqueue 2017-02-14 10:23:32 +01:00
checker Improve test failure diff 2019-10-29 20:03:08 +00:00
configuration Import str as str_text from builtins when supporting transition 2019-04-19 19:25:50 +01:00
logger Set copyright. 2010-03-26 20:51:59 +01:00
__init__.py Python3: fix tests init - exceptions and string 2019-04-25 19:35:09 +01:00
cookies.txt Load cookies from the --cookiefile correctly 2018-03-16 13:23:26 +02:00
test_cgi.py fixes for Python 3 + Travis test: fix cgi 2019-09-13 19:46:13 +01:00
test_clamav.py Python 3: fix bytes vs strings in viruscheck plugin 2019-10-25 14:24:07 +03:00
test_console.py Add detailed locale info to internal error output. 2011-04-06 11:56:55 +02:00
test_containers.py Python3: replace xrange 2019-04-13 20:38:58 +01:00
test_cookies.py Update references to GitHub project from wummel to linkchecker 2019-04-18 19:59:52 +01:00
test_decorators.py Python3: fix logging 2019-04-14 18:59:50 +01:00
test_dummy.py Fix mistakes in changes to test_dummy.py and test_updater.py in 8f4acc31 2019-04-19 19:22:38 +01:00
test_filenames.py Set for release. 2014-03-04 21:36:24 +01:00
test_fileutil.py Move mime stuff into own submodule. 2014-05-10 21:22:10 +02:00
test_ftpparse.py Set copyright. 2010-03-26 20:51:59 +01:00
test_linkchecker.py Introduce check plugins, use Python requests for http/s connections, and some code cleanups and improvements. 2014-03-01 00:12:34 +01:00
test_linkname.py Updated FSF address in GPL blurb 2009-07-24 23:58:20 +02:00
test_linkparser.py Do not strip quotes from resolved URLs. 2014-07-11 00:43:46 +02:00
test_mimeutil.py Move mime stuff into own submodule. 2014-05-10 21:22:10 +02:00
test_network.py Remove unused code from network subpackage 2019-10-19 10:27:34 +01:00
test_parser.py Python3: use BytesIO instead of StringIO 2019-04-09 20:09:35 +01:00
test_po.py Python3: use file descriptors 2018-01-19 09:52:43 +01:00
test_robotparser.py Updated copyright. 2014-07-16 07:35:32 +02:00
test_robotstxt.py Make TestRobotsTxt Python 3.7 compatible 2019-04-22 19:50:32 +01:00
test_strformat.py Python3: mark bytes explicitly 2019-04-09 20:09:35 +01:00
test_updater.py Fix mistakes in changes to test_dummy.py and test_updater.py in 8f4acc31 2019-04-19 19:22:38 +01:00
test_url.py Fix fragment identifier quoting 2017-11-10 08:03:03 -05:00
test_urlbuild.py Updated copyright and docs. 2014-03-14 22:09:05 +01:00