mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-14 11:21:02 +00:00
pretend to be the command line in file tests
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1491 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
7b51ed57d2
commit
2e3315cb5f
1 changed files with 3 additions and 2 deletions
|
|
@ -105,7 +105,7 @@ class StandardTest (unittest.TestCase):
|
|||
return linkcheck.url.url_norm(url)
|
||||
|
||||
def get_file (self, filename):
|
||||
"""get absolute file name, located within 'data' directory"""
|
||||
"""get file name located within 'data' directory"""
|
||||
return os.path.join("linkcheck", "ftests", "data", filename)
|
||||
|
||||
def get_resultlines (self, filename):
|
||||
|
|
@ -126,7 +126,8 @@ class StandardTest (unittest.TestCase):
|
|||
confargs = {}
|
||||
logargs = {'expected': self.get_resultlines(filename)}
|
||||
consumer = get_test_consumer(confargs, logargs)
|
||||
url_data = linkcheck.checker.get_url_from(url, 0, consumer)
|
||||
url_data = linkcheck.checker.get_url_from(
|
||||
url, 0, consumer, cmdline=True)
|
||||
consumer.append_url(url_data)
|
||||
linkcheck.checker.check_urls(consumer)
|
||||
if consumer.config['logger'].diff:
|
||||
|
|
|
|||
Loading…
Reference in a new issue