mirror of https://gitlab.com/bashrc2/epicyon
At least one site should resolve
parent
2914be4288
commit
2e13ca7143
4
tests.py
4
tests.py
|
@ -3807,7 +3807,9 @@ def _test_jsonld():
|
||||||
def _test_site_active():
|
def _test_site_active():
|
||||||
print('test_site_is_active')
|
print('test_site_is_active')
|
||||||
timeout = 10
|
timeout = 10
|
||||||
assert site_is_active('https://archive.org', timeout)
|
# at least one site should resolve
|
||||||
|
if not site_is_active('https://archive.org', timeout):
|
||||||
|
if not site_is_active('https://wikipedia.org', timeout):
|
||||||
assert site_is_active('https://mastodon.social', timeout)
|
assert site_is_active('https://mastodon.social', timeout)
|
||||||
assert not site_is_active('https://notarealwebsite.a.b.c', timeout)
|
assert not site_is_active('https://notarealwebsite.a.b.c', timeout)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue