Chris Mayo
3c7fb5b571
Fix checking directory containing Unicode filenames
...
Non-Unicode filenames are not supported.
sys.platform has not returned "linux2" since Python 3.3.
2022-09-05 19:28:40 +01:00
Chris Mayo
1abd9ea10e
Skip tests in TestFile rather than silently returning
2022-09-05 19:28:40 +01:00
Chris Mayo
b0878dd7e8
Require TestFile.test_directory_listing to succeed
2021-12-15 19:36:53 +00:00
Chris Mayo
165c51aeea
Run black on tests/
2020-05-28 20:29:13 +01:00
Chris Mayo
f6e182f0e4
Mark TestFile.test_html_url_quote as need_network
...
Else without the internet the test fails, eventually, with:
warning No MX mail host for users.sourceforge.net found
2020-05-25 19:55:28 +01:00
Chris Mayo
313a14ff0d
Remove instances of Python 2 unicode
2020-05-24 19:14:47 +01:00
Marius Gedminas
5bd1fb4e36
Fix internal error on empty HTML files
...
When BeautifulSoup finds an empty file on disk, it sets
original_encoding to None. It doesn't matter what encoding we pick for
empty files, so let's just pick one.
I don't know if there are any circumstances where BeautifulSoup might
set the encoding to None for a non-empty file.
Closes #392 .
2020-05-21 19:01:33 +03:00
Chris Mayo
a15a2833ca
Remove spaces after names in class method definitions
...
And also nested functions.
This is a PEP 8 convention, E211.
2020-05-16 20:19:42 +01:00
Chris Mayo
1663e10fe7
Remove spaces after names in function definitions
...
This is a PEP 8 convention, E211.
2020-05-16 20:19:42 +01:00
Chris Mayo
fc11d08968
Remove spaces after names in class definitions
2020-05-16 20:19:42 +01:00
Chris Mayo
736c893707
Merge pull request #377 from cjmayo/tidyten3
...
Remove u string prefixes
2020-05-13 19:36:54 +01:00
Chris Mayo
b0ea72e8c1
Remove # -*- coding: lines
...
Except for tests that include non-unicode characters:
tests/test_po.py
tests/test_strformat.py
tests/test_url.py
tests/checker/test_error.py
tests/checker/test_news.py
2020-05-08 10:45:31 +01:00
Chris Mayo
4d3e5abcfa
Remove u string prefixes
2020-04-30 20:11:59 +01:00
Chris Mayo
74d5c68094
Add new tests for URL quoting
2019-10-05 19:38:57 +01:00
Petr Dlouhý
1e9fd51dfa
Python3: fix permission mask in test_file
2019-04-09 20:09:35 +01:00
Petr Dlouhý
f5100138ff
fix tests that fail because of changed linkchecker output
2017-02-14 10:59:38 +01:00
Marius Gedminas
02869ea076
Mark TestFile.test_directory_listing as known to fail
...
The test unzipps a zip file with a weird-looking non-ASCII filename in it.
I don't think zip files specify the encoding for filenames. Different
unzip utilities may interpret the filename differently. Plus, the byte
representation of the unzipped filename may be different depending on
the filesystem charset.
To me it looks as if the filename is garbage encoded as valid UTF-8, and
the test expectation is to get it in latin-1 or something.
2017-02-01 18:45:05 +02:00
Vadim Khohlov
d4352fc828
Added plugin for parsing and checking links in Markdown files
2014-11-11 15:35:18 +02:00
Bastian Kleineidam
b152ce7a6e
Add PDF test and fix page number.
2014-04-29 18:53:24 +02:00
Bastian Kleineidam
6b334dc79b
Fix URL result caching.
2014-03-08 19:35:10 +01:00
Bastian Kleineidam
82f81241fd
Check all links and add better caching.
2014-03-03 23:29:45 +01:00
Bastian Kleineidam
7b34be590b
Introduce check plugins, use Python requests for http/s connections, and some code cleanups and improvements.
2014-03-01 00:12:34 +01:00
Bastian Kleineidam
c806be5c15
Updated copyright
2014-01-08 22:33:04 +01:00
Bastian Kleineidam
aaf35c0f4a
Added Word test.
2013-01-09 23:02:47 +01:00
Bastian Kleineidam
eabaa41bd2
Do not check duplicate URLs.
2012-11-06 21:34:22 +01:00
Bastian Kleineidam
93f3683ac1
Fix tests.
2012-09-02 23:22:01 +02:00
Bastian Kleineidam
ecef16b2c9
Support WML sites.
2012-08-22 22:43:14 +02:00
Bastian Kleineidam
9c40078ab9
Run obfuscated IP and unicode directory listing test only on linux.
2011-12-18 08:12:23 +01:00
Bastian Kleineidam
f8ef9cca6a
Test cleanup.
2011-12-17 16:39:21 +01:00
Bastian Kleineidam
3d9958dfbb
Parse Safari bookmark files.
2011-12-17 16:38:25 +01:00
Bastian Kleineidam
e638a2fe6d
Updated copyright and translations. Added some missing docstrings.
2011-02-17 07:38:02 +01:00
Bastian Kleineidam
0d4377d1ba
Support Google Chrome Bookmark files.
2011-02-15 18:26:00 +01:00
Bastian Kleineidam
d011d1524c
Parse PHP files recursively.
2010-12-28 17:11:29 +01:00
Bastian Kleineidam
0d8a583e39
Fix internal pattern for file URLs (regression from commit 90e0f4e)
2010-12-21 21:10:31 +01:00
Bastian Kleineidam
90e0f4e5cc
Detect filenames with spaces as internal links.
2010-12-21 07:05:12 +01:00
Bastian Kleineidam
0f92b76290
Remove the unnormed URL warning.
2010-07-29 20:20:59 +02:00
Bastian Kleineidam
4e1b6d667e
Set copyright.
2010-03-26 20:51:59 +01:00
Bastian Kleineidam
c4c098bd83
pep8-ify the source a little more
2010-03-13 08:47:12 +01:00
Bastian Kleineidam
2d3ea65f78
Add unicode file test
2009-11-28 12:04:02 +01:00
Bastian Kleineidam
5e06b6b8d4
Updated FSF address in GPL blurb
2009-07-24 23:58:20 +02:00
Bastian Kleineidam
bbcfa3533b
Turn test doc strings into comments so they get not printed when running the tests.
2009-06-26 07:20:21 +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
f399b79e5a
Unzip non-latin filename only on posix systems.
...
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3889 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2009-01-08 23:06:19 +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
4306d6a4b6
Added back the unittest data files
...
This time with the non-unicode filename hidden inside a ZIP file
to avoid breaking the subversion repository.
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3868 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2008-11-27 19:23:40 +00:00
calvin
2758de9757
Added directory listing test
...
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3866 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2008-11-20 18:48:23 +00:00
calvin
42c3e71329
Improved and tested opera bookmark parser
...
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3863 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2008-11-20 07:52:02 +00:00
calvin
9ab895751f
Support parsing of Firefox 3 bookmark files
...
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3862 e7d03fd6-7b0d-0410-9947-9c21f3af8025
2008-11-20 07:51:22 +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