mirror of
https://github.com/jongracecox/anybadge.git
synced 2025-12-16 10:30:05 +01:00
Added basic execution test.
This commit is contained in:
15
test.py
Executable file
15
test.py
Executable 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)
|
||||
Reference in New Issue
Block a user