2003-07-04 14:24:44 +00:00
|
|
|
# -*- coding: iso-8859-1 -*-
|
2002-09-26 15:48:13 +00:00
|
|
|
import os, linkcheck
|
2001-02-20 23:58:35 +00:00
|
|
|
config = linkcheck.Config.Configuration()
|
2002-05-05 15:02:58 +00:00
|
|
|
config.addLogger('test', linkcheck.test_support.TestLogger)
|
2003-08-11 11:54:26 +00:00
|
|
|
config['recursionlevel'] = True
|
2001-02-20 23:58:35 +00:00
|
|
|
config['log'] = config.newLogger('test')
|
2003-08-11 11:54:26 +00:00
|
|
|
config["anchors"] = True
|
|
|
|
|
config["verbose"] = True
|
2001-02-20 23:58:35 +00:00
|
|
|
config.disableThreading()
|
|
|
|
|
htmldir = "test/html"
|
2001-02-22 00:39:40 +00:00
|
|
|
for file in ('https.html',):
|
2001-02-20 23:58:35 +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-20 23:58:35 +00:00
|
|
|
linkcheck.checkUrls(config)
|