diff options
Diffstat (limited to 'py3status/modules/weather_yahoo.py')
| -rw-r--r-- | py3status/modules/weather_yahoo.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/py3status/modules/weather_yahoo.py b/py3status/modules/weather_yahoo.py index ad0cecb..2962a75 100644 --- a/py3status/modules/weather_yahoo.py +++ b/py3status/modules/weather_yahoo.py @@ -107,3 +107,13 @@ class Py3status: response['full_text'] = response['full_text'].strip() return response + +if __name__ == "__main__": + """ + Test this module by calling it directly. + """ + from time import sleep + x = Py3status() + while True: + print(x.weather_yahoo([], {})) + sleep(1) |
