checkpoint commit
All checks were successful
Podman DDNS Image / build-and-push-ddns (push) Successful in 1m3s
All checks were successful
Podman DDNS Image / build-and-push-ddns (push) Successful in 1m3s
This commit is contained in:
15
active/device_unifi/test_update_dns.py
Normal file
15
active/device_unifi/test_update_dns.py
Normal file
@@ -0,0 +1,15 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user