mirror of
https://github.com/facefusion/facefusion.git
synced 2026-04-22 09:26:02 +02:00
5b7d145aa7
* Avast intercepts ssl cert and breaks curl * modernize dependencies * fix sanitizer for int range * comment out tests * disable testing for CI * disable testing for CI
18 lines
479 B
Python
18 lines
479 B
Python
from shutil import which
|
|
|
|
from facefusion import metadata
|
|
from facefusion.curl_builder import chain, ping, run, set_timeout
|
|
|
|
|
|
def test_run() -> None:
|
|
user_agent = metadata.get('name') + '/' + metadata.get('version')
|
|
|
|
assert run([]) == [ which('curl'), '--user-agent', user_agent, '--location', '--silent', '--ssl-no-revoke' ]
|
|
|
|
|
|
def test_chain() -> None:
|
|
assert chain(
|
|
ping(metadata.get('url')),
|
|
set_timeout(5)
|
|
) == [ '-I', metadata.get('url'), '--connect-timeout', '5' ]
|