init: zero-dep dns-over-https resolver
This commit is contained in:
commit
7348f9b0dd
18 changed files with 589 additions and 0 deletions
7
tests/test_live.py
Normal file
7
tests/test_live.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from pydoh import resolve
|
||||
|
||||
|
||||
def test_live_resolve_example_com():
|
||||
ips = resolve("example.com", use_cache=False)
|
||||
assert len(ips) > 0
|
||||
assert all(part.isdigit() for ip in ips for part in ip.split("."))
|
||||
Loading…
Add table
Add a link
Reference in a new issue