Chris Mayo
3771dd9136
Use parser.feed_soup() instead of parser.feed()
...
Markup is not being passed in pieces to the parser, so simplify the
interface and reduce the state further.
2020-04-08 20:03:35 +01:00
Chris Mayo
9fc651e82b
Remove Python 2 compatibility from parser tests
2020-03-31 20:10:35 +01:00
Chris Mayo
ffa6ac457f
Remove support for non-Tag elements from Parser
...
This change is made because the linkchecker handlers only process
Tags.
The test HtmlPrettyPrinter handler is updated to output element text
because its support for non-Tag elements has been removed. This results
in a number of the existing tests still passing.
2020-03-31 20:10:35 +01:00
Chris Mayo
1255119ca8
Move HtmlPrinter and HtmlPrettyPrinter into tests
2020-03-30 19:32:30 +01:00
Chris Mayo
f743be57e8
Remove unused functions from linkcheck.HtmlParser
...
resolve_entities() unused since:
2c000683 ("Remove unused linkcheck.htmlutil.linkname module",
2020-03-30)
set_doctype(), set_encoding() unused since:
51a06d8a ("Remove home-cooked htmlparser and use BeautifulSoup",
2019-07-22)
2020-03-30 19:32:18 +01:00
Chris Mayo
30df69c158
Improve pretty printed comments
2019-10-05 19:38:57 +01:00
Petr Dlouhý
69d426b36f
fix parser encoding tests after change of parser
...
UnicodeDammit input has to be non-unicode to trigger character set
detection.
2019-07-22 19:59:37 +01:00
Petr Dlouhý
b5111453d8
change test_parse encoding to UTF-8
2019-07-22 19:59:37 +01:00
Petr Dlouhý
0089349760
fix parser tests after parser change
2019-07-22 19:59:37 +01:00
Petr Dlouhý
d6d48b4814
html parser: use name instead of peeking
2019-07-22 19:59:37 +01:00
Petr Dlouhý
106d58c2da
Python3: use BytesIO instead of StringIO
2019-04-09 20:09:35 +01:00
Petr Dlouhý
99b18eee6d
execude parser test by parametrized
2018-01-09 23:15:09 +01:00
Bastian Kleineidam
6d5e5f9efb
Updated copyright.
2012-03-30 22:24:10 +02:00
Bastian Kleineidam
9ee9abcf0f
Parse invalid comments <! bla >
2012-03-23 07:41:03 +01:00
Bastian Kleineidam
4a04ff3224
Add html5 tests.
2011-12-30 12:30:07 +01:00
Bastian Kleineidam
d2ae6bf71c
Properly detect HTML character encoding.
2011-08-14 12:49:31 +02:00
Bastian Kleineidam
c9707ee735
Handle stray < before end tags.
2011-05-28 13:39:04 +02:00
Bastian Kleineidam
0f70438a87
Updated copyright.
2011-05-28 08:44:21 +02:00
Bastian Kleineidam
7d04c3ee81
Handle stray < characters in HTML.
2011-05-20 06:50:08 +02:00
Bastian Kleineidam
c4c098bd83
pep8-ify the source a little more
2010-03-13 08:47:12 +01:00
Bastian Kleineidam
57397e938b
Improved linkname parsing by adding a new peek() HTML parser function.
2010-03-09 11:31:12 +01:00
Bastian Kleineidam
d1827804d2
Replace docstrings in test methods with comments so they are not displayed by nosetest.
2010-03-09 08:42:46 +01:00
Bastian Kleineidam
563b057a4d
Updated copyright year; fix nntp newsserver test
2010-03-05 12:49:54 +01:00
Bastian Kleineidam
92f8911d88
Use non-deprecated assert methods for unit testing
2010-03-05 10:00:34 +01:00
Bastian Kleineidam
5e06b6b8d4
Updated FSF address in GPL blurb
2009-07-24 23:58:20 +02:00
calvin
1f803fd80c
Run tests with nosetests
...
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3941 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2009-01-28 23:12:03 +00:00
calvin
e9805dbd8a
Updated copyright year to 2009
...
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3887 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2009-01-08 14:18:03 +00:00
calvin
9352dbf5e4
Move test files to separate module
...
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3763 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2008-05-20 17:01:16 +00:00