summaryrefslogtreecommitdiffstats
path: root/py3status/modules/sysdata.py
diff options
context:
space:
mode:
authorUltrabug <ultrabug@gentoo.org>2014-12-21 20:07:01 +0100
committerUltrabug <ultrabug@gentoo.org>2014-12-21 20:07:01 +0100
commit2d016637ea3b836fb05ae452a8ea2ddf50ccc619 (patch)
tree96ef530103a53426c5bd7e930a9a13fe45c691c2 /py3status/modules/sysdata.py
parent51205fd4c54499dce894aa1b64b74e343bd51406 (diff)
add standalone test code
Diffstat (limited to 'py3status/modules/sysdata.py')
-rw-r--r--py3status/modules/sysdata.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/py3status/modules/sysdata.py b/py3status/modules/sysdata.py
index 60283ac..cea950d 100644
--- a/py3status/modules/sysdata.py
+++ b/py3status/modules/sysdata.py
@@ -138,3 +138,14 @@ class Py3status:
response['cached_until'] = time() + self.cache_timeout
return response
+
+if __name__ == "__main__":
+ """
+ Test this module by calling it directly.
+ """
+ from time import sleep
+ x = Py3status()
+ while True:
+ print(x.cpuInfo([], {}))
+ print(x.ramInfo([], {}))
+ sleep(1)