diff options
| author | Ultrabug <ultrabug@gentoo.org> | 2014-12-21 20:06:22 +0100 |
|---|---|---|
| committer | Ultrabug <ultrabug@gentoo.org> | 2014-12-21 20:06:22 +0100 |
| commit | 51205fd4c54499dce894aa1b64b74e343bd51406 (patch) | |
| tree | 4cf8e750924b4b99a58c296cbc954c1512b27302 /py3status/modules/whoami.py | |
| parent | 3655bbde7e8941db58bf17f6404a8121444d7cd9 (diff) | |
add standalone test code
Diffstat (limited to 'py3status/modules/whoami.py')
| -rw-r--r-- | py3status/modules/whoami.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/py3status/modules/whoami.py b/py3status/modules/whoami.py index a5e27ed..f2f8571 100644 --- a/py3status/modules/whoami.py +++ b/py3status/modules/whoami.py @@ -28,3 +28,13 @@ class Py3status: 'full_text': username } return response + +if __name__ == "__main__": + """ + Test this module by calling it directly. + """ + from time import sleep + x = Py3status() + while True: + print(x.whoami([], {})) + sleep(1) |
