mirror of
https://github.com/facefusion/facefusion.git
synced 2026-04-22 17:36:16 +02:00
a498f3d618
* remove insecure flag from curl * eleminate repating definitons * limit processors and ui layouts by choices * follow couple of v4 standards * use more secure mkstemp * dynamic cache path for execution providers * fix benchmarker, prevent path traveling via job-id * fix order in execution provider choices * resort by prioroty * introduce support for QNN * close file description for Windows to stop crying * prevent ConnectionResetError under windows * needed for nested .caches directory as onnxruntime does not create it * different approach to silent asyncio * update dependencies * simplify the name to just inference providers * switch to trt_builder_optimization_level 4
18 lines
460 B
Python
18 lines
460 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' ]
|
|
|
|
|
|
def test_chain() -> None:
|
|
assert chain(
|
|
ping(metadata.get('url')),
|
|
set_timeout(5)
|
|
) == [ '-I', metadata.get('url'), '--connect-timeout', '5' ]
|