mirror of
https://github.com/caronc/apprise.git
synced 2025-08-14 10:28:38 +02:00
Refactor Test Code for Efficiency and Quality (#1100)
This commit is contained in:
@ -48,8 +48,8 @@ def test_config_memory():
|
||||
assert len(cm) == 1
|
||||
|
||||
# Test general functions
|
||||
assert isinstance(cm.url(), str) is True
|
||||
assert isinstance(cm.read(), str) is True
|
||||
assert isinstance(cm.url(), str)
|
||||
assert isinstance(cm.read(), str)
|
||||
|
||||
# Test situation where an auto-detect is required:
|
||||
cm = ConfigMemory(content="json://localhost")
|
||||
@ -58,8 +58,8 @@ def test_config_memory():
|
||||
assert len(cm) == 1
|
||||
|
||||
# Test general functions
|
||||
assert isinstance(cm.url(), str) is True
|
||||
assert isinstance(cm.read(), str) is True
|
||||
assert isinstance(cm.url(), str)
|
||||
assert isinstance(cm.read(), str)
|
||||
|
||||
# Test situation where we can not detect the data
|
||||
assert len(ConfigMemory(content="garbage")) == 0
|
||||
|
Reference in New Issue
Block a user