2002-06-26 20:46:42 +00:00
|
|
|
import os, linkcheck, linkcheck.UrlData
|
2001-02-18 20:29:52 +00:00
|
|
|
config = linkcheck.Config.Configuration()
|
2002-05-05 15:02:58 +00:00
|
|
|
config.addLogger('test', linkcheck.test_support.TestLogger)
|
2001-02-18 20:29:52 +00:00
|
|
|
config['recursionlevel'] = 1
|
|
|
|
|
config['log'] = config.newLogger('test')
|
|
|
|
|
config["anchors"] = 1
|
|
|
|
|
config["verbose"] = 1
|
|
|
|
|
config.disableThreading()
|
|
|
|
|
htmldir = "test/html"
|
2002-04-27 12:54:53 +00:00
|
|
|
for file in ('base1.html',):
|
2001-02-18 20:29:52 +00:00
|
|
|
url = os.path.join(htmldir, file)
|
2002-05-04 13:27:02 +00:00
|
|
|
config.appendUrl(linkcheck.UrlData.GetUrlDataFrom(url, 0, config))
|
2001-02-18 20:29:52 +00:00
|
|
|
linkcheck.checkUrls(config)
|