Files
homelab/active/device_unifi/test_update_dns.py
ducoterra f2015e2c71
All checks were successful
Podman DDNS Image / build-and-push-ddns (push) Successful in 1m3s
checkpoint commit
2026-05-05 06:26:40 -04:00

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")