mirror of
https://github.com/facefusion/facefusion.git
synced 2026-04-26 19:36:22 +02:00
666c15f9da
* Remove old files * Fix some spacing * Introduce retry to download * More testing * Better installer scripting (#994) * Better installer scripting * Add migraphx installer support * Add migraphx installer support * Ignore issue * Ignore issue * Make --force-install optional
18 lines
474 B
Python
18 lines
474 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, '--insecure', '--location', '--silent' ]
|
|
|
|
|
|
def test_chain() -> None:
|
|
assert chain(
|
|
ping(metadata.get('url')),
|
|
set_timeout(5)
|
|
) == [ '-I', metadata.get('url'), '--connect-timeout', '5' ]
|