mirror of
https://github.com/facefusion/facefusion.git
synced 2026-04-23 09:56:11 +02:00
423fee9d7f
This commit adds comprehensive API process functionality including: - Remote streaming support - Session management and context handling - Media type support (video/audio/image) - Asset management and path isolation - Workflow refactoring and optimization - Security improvements and state violation handling - Gallery and image resolution features - Audio support - Analysis tools - Version guard 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
15 lines
412 B
Python
15 lines
412 B
Python
from shutil import which
|
|
|
|
from facefusion import metadata
|
|
from facefusion.curl_builder import chain, head, run
|
|
|
|
|
|
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(head(metadata.get('url'))) == [ '-I', metadata.get('url') ]
|