All checks were successful
Podman DDNS Image / build-and-push-ddns (push) Successful in 1m3s
16 lines
425 B
Python
16 lines
425 B
Python
from update_dns import ApiHelperMethods, ApiPaths, ApiWrapper
|
|
|
|
|
|
def test_api_get():
|
|
assert ApiWrapper.api_get(ApiPaths.list_sites()) is not None
|
|
|
|
|
|
def test_site_name_to_id():
|
|
assert ApiHelperMethods.site_name_to_id("Default") is not None
|
|
|
|
|
|
def test_dns_record_exists():
|
|
assert ApiHelperMethods.dns_record_exists("test.reeselink.com")
|
|
|
|
assert not ApiHelperMethods.dns_record_exists("idontexist.reeselink.com")
|