100% test coverage

This commit is contained in:
Andrew Herrington
2021-12-10 18:18:06 -06:00
parent 2bfece1e56
commit 95ab6d45f2
2 changed files with 14 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
from healthchecks_io.client._abstract import AbstractClient
def test_abstract_add_url_params():
AbstractClient.__abstractmethods__ = set()
abstract_client = AbstractClient("test")
url = abstract_client._add_url_params(
"http://test.com/?test=test", {"test": "test2"}
)
assert url == "http://test.com/?test=test2"