diff options
| author | Ultrabug <ultrabug@gentoo.org> | 2014-12-21 20:13:05 +0100 |
|---|---|---|
| committer | Ultrabug <ultrabug@gentoo.org> | 2014-12-21 20:13:05 +0100 |
| commit | bb961cc78f200e5d4f94d79f18c0eb6954762efc (patch) | |
| tree | 46c08bc6013d33dce5287ea85d6c3d2d92a5f09b | |
| parent | a463072f89393bc1a6b77c8bc0edd328e5e7b5b4 (diff) | |
add standalone test code
| -rw-r--r-- | py3status/modules/empty_class.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/py3status/modules/empty_class.py b/py3status/modules/empty_class.py index 0e70062..23f7810 100644 --- a/py3status/modules/empty_class.py +++ b/py3status/modules/empty_class.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Empty and basic py3status class. @@ -73,3 +74,13 @@ class Py3status: 'full_text': '' } return response + +if __name__ == "__main__": + """ + Test this module by calling it directly. + """ + from time import sleep + x = Py3status() + while True: + print(x.empty([], {})) + sleep(1) |
