Added basic execution test.

This commit is contained in:
Jon Grace-Cox
2017-09-11 18:07:34 -04:00
parent 62bf16c154
commit bb17cd6a81

15
test.py Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/python
"""
anybadge test module.
"""
import anybadge
if __name__ == '__main__':
thresholds={2: 'red', 4: 'orange', 6: 'green', 8: 'brightgreen'}
badge = anybadge.Badge('test', '2.22', value_suffix='%',
thresholds=thresholds)
print(badge.badge_svg_text)