linkchecker/tests/checker
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
..
data Fix XmlTagUrlParser and make Python 3 compatible 2019-10-28 19:20:05 +00:00
__init__.py Improve test failure diff 2019-10-29 20:03:08 +00:00
ftpserver.py Get FtpServerTest working by updating to current pyftpdlib API 2019-04-22 19:34:46 +01:00
httpserver.py Replace deprecated cgi.escape 2019-09-17 20:25:05 +01:00
telnetserver.py fixes for Python 3: fix telneturl 2019-09-15 19:49:18 +01:00
test_all_parts.py Make test_all_parts TestLogger import Python 3 compatible 2019-04-25 20:28:21 +01:00
test_anchor.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_base.py Improve content type setting. 2014-03-05 20:12:19 +01:00
test_bookmarks.py enable and fix remaining bookmark tests 2019-09-16 20:08:01 +01:00
test_error.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_file.py Python3: fix permission mask in test_file 2019-04-09 20:09:35 +01:00
test_frames.py Updated FSF address in GPL blurb 2009-07-24 23:58:20 +02:00
test_ftp.py Do not check duplicate URLs. 2012-11-06 21:34:22 +01:00
test_http.py Fix TypeError: string arg required in content_allows_robots() 2019-10-22 14:13:45 +03:00
test_http_misc.py Add a regression test for the sitemap parser 2019-10-23 17:30:10 +03:00
test_http_redirect.py Mark more tests that require the network 2019-01-01 22:37:21 +00:00
test_http_robots.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_httpbin.py Mark more tests that require the network 2019-01-01 22:37:21 +00:00
test_https.py Mark TestHttps.test_https as known to fail 2017-02-01 18:44:21 +02:00
test_https_redirect.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_internpat.py fixes for Python 3: fix test_internpat and test_news 2019-04-09 20:09:35 +01:00
test_mail_bad.py Increase url-too-long warning. 2014-03-03 23:31:04 +01:00
test_mail_good.py Fix tests 2016-01-19 22:05:15 +01:00
test_misc.py Add a regression test for issue #317 2019-10-21 17:45:18 +03:00
test_news.py Explain why these tests are being skipped 2019-10-23 17:35:31 +03:00
test_noproxy.py Python3: fix imports in test_noproxy 2019-04-12 20:27:09 +01:00
test_telnet.py Do not check duplicate URLs. 2012-11-06 21:34:22 +01:00
test_unknown.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_urllen.py Increase url-too-long warning. 2014-03-03 23:31:04 +01:00
test_whitespace.py Mark more tests that require the network 2019-01-01 22:37:21 +00:00