From 266084801d230ca7e490442c9bc55bd6624e9224 Mon Sep 17 00:00:00 2001 From: enkore Date: Wed, 23 Oct 2013 21:06:31 +0200 Subject: [PATCH] Delete Module.test() #27 --- i3pystatus/core/modules.py | 7 ------- i3pystatus/modsde.py | 5 ----- 2 files changed, 12 deletions(-) diff --git a/i3pystatus/core/modules.py b/i3pystatus/core/modules.py index 58bf458..c1f51b5 100644 --- a/i3pystatus/core/modules.py +++ b/i3pystatus/core/modules.py @@ -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 diff --git a/i3pystatus/modsde.py b/i3pystatus/modsde.py index 701b274..98e9289 100644 --- a/i3pystatus/modsde.py +++ b/i3pystatus/modsde.py @@ -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,