AppriseAsset refactored; added body_format default (#181)

This commit is contained in:
Chris Caron
2019-11-26 20:11:06 -05:00
committed by GitHub
parent 35a8ffaad6
commit 4bddcadfb8
3 changed files with 31 additions and 14 deletions

View File

@ -666,9 +666,13 @@ def test_apprise_asset(tmpdir):
API: AppriseAsset() object
"""
a = AppriseAsset(theme=None)
a = AppriseAsset(theme='light')
# Default theme
assert a.theme == 'default'
assert a.theme == 'light'
# Invalid kw handling
with pytest.raises(AttributeError):
AppriseAsset(invalid_kw='value')
a = AppriseAsset(
theme='dark',