mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-05 05:04:46 +00:00
The minimum version supported was already 4.8.0 because of the use of multi_valued_attributes [1]. Test support for < 4.8.1 is the only code that needs removing [2]. [1]3ff3d724("Use BeautifulSoup element attrs directly", 2020-04-03) [2]607328d5("Support Beautiful Soup line numbers", 2019-10-05)
50 lines
1.3 KiB
Python
50 lines
1.3 KiB
Python
# Copyright (C) 2004-2014 Bastian Kleineidam
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License along
|
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
"""
|
|
Test http checking.
|
|
"""
|
|
from . import LinkCheckTest
|
|
from . import TestLogger
|
|
|
|
|
|
class AllPartsLogger(TestLogger):
|
|
logparts = [
|
|
"cachekey",
|
|
"realurl",
|
|
"name",
|
|
"base",
|
|
"info",
|
|
"warning",
|
|
"result",
|
|
"url",
|
|
"line",
|
|
"col",
|
|
"size",
|
|
"parent_url",
|
|
"page",
|
|
"content_type",
|
|
]
|
|
|
|
|
|
class TestAllParts(LinkCheckTest):
|
|
"""
|
|
Test that all parts of logger are working properly.
|
|
"""
|
|
|
|
logger = AllPartsLogger
|
|
|
|
def test_all_parts_linenos(self):
|
|
self.file_test("all_parts_linenos.html")
|