diff options
| author | Ultrabug <ultrabug@gentoo.org> | 2014-12-21 20:08:38 +0100 |
|---|---|---|
| committer | Ultrabug <ultrabug@gentoo.org> | 2014-12-21 20:08:38 +0100 |
| commit | f18599279e3c8be8083061c3a909e7b72fb89025 (patch) | |
| tree | a9cd87d6c1ceb560c212c655d86d7da415724842 /py3status/modules | |
| parent | 2a0aa3b7c2274496c1462297f33fc549b045d4e1 (diff) | |
add standalone test code
Diffstat (limited to 'py3status/modules')
| -rw-r--r-- | py3status/modules/scratchpad_counter.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/py3status/modules/scratchpad_counter.py b/py3status/modules/scratchpad_counter.py index 0b2eec7..0ee9a49 100644 --- a/py3status/modules/scratchpad_counter.py +++ b/py3status/modules/scratchpad_counter.py @@ -50,3 +50,13 @@ class Py3status: response['full_text'] = self.format.format(count) return response + +if __name__ == "__main__": + """ + Test this module by calling it directly. + """ + from time import sleep + x = Py3status() + while True: + print(x.scratchpad_counter([], {})) + sleep(1) |
