Delete Module.test() #27
This commit is contained in:
parent
6d9494acff
commit
266084801d
@ -18,13 +18,6 @@ class Module(SettingsBase):
|
||||
self.output["instance"] = str(id(self))
|
||||
json.insert(convert_position(self.position, json), self.output)
|
||||
|
||||
def test(self):
|
||||
"""
|
||||
Return True if settings seem ok (i.e. login credentials and such are valid)
|
||||
or a string describing the problem
|
||||
"""
|
||||
return True
|
||||
|
||||
def run(self):
|
||||
pass
|
||||
|
||||
|
@ -71,11 +71,6 @@ class ModsDeChecker(IntervalModule):
|
||||
urllib.request.HTTPCookieProcessor(self.cj))
|
||||
self.logged_in = False
|
||||
|
||||
def test(self):
|
||||
if not self.login():
|
||||
return "Wrong credentials or no internet connection"
|
||||
return True
|
||||
|
||||
def login(self):
|
||||
data = urllib.parse.urlencode({
|
||||
"login_username": self.username,
|
||||
|
Loading…
Reference in New Issue
Block a user