linkchecker/test/test_file.py
2004-04-04 12:55:18 +00:00

13 lines
508 B
Python

# -*- coding: iso-8859-1 -*-
import os, linkcheck
config = linkcheck.Config.Configuration()
config.addLogger('test', linkcheck.test_support.TestLogger)
config['recursionlevel'] = 1
config['log'] = config.newLogger('test')
config["anchors"] = True
config["verbose"] = True
config.setThreads(0)
for filename in ('file.html', "file.txt", "file.asc", "file.css"):
url = os.path.join("test", "html", filename)
config.appendUrl(linkcheck.UrlData.GetUrlDataFrom(url, 0, config))
linkcheck.checkUrls(config)