mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-04 23:20:34 +00:00
Merge pull request #469 from cjmayo/checklink
Remove defaults from lc_cgi.checklink()
This commit is contained in:
commit
33a5444dea
2 changed files with 2 additions and 3 deletions
|
|
@ -18,7 +18,6 @@ Functions used by the WSGI script.
|
|||
"""
|
||||
|
||||
import html
|
||||
import os
|
||||
import threading
|
||||
import locale
|
||||
import re
|
||||
|
|
@ -137,7 +136,7 @@ def encode(s):
|
|||
return s.encode(HTML_ENCODING, 'ignore')
|
||||
|
||||
|
||||
def checklink(form=None, env=os.environ):
|
||||
def checklink(form, env):
|
||||
"""Validates the CGI form and checks the given links."""
|
||||
if form is None:
|
||||
form = {}
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class TestWsgi(unittest.TestCase):
|
|||
|
||||
def test_checklink(self):
|
||||
form = dict(url="http://www.example.com/", level="0")
|
||||
checklink(form)
|
||||
checklink(form, {})
|
||||
|
||||
def test_application(self):
|
||||
form = dict(url="http://www.example.com/", level="0")
|
||||
|
|
|
|||
Loading…
Reference in a new issue