mirror of
https://github.com/facefusion/facefusion.git
synced 2026-04-25 10:55:57 +02:00
ab24cd3f2e
* implement basic webrtc_stream * add aiortc to requirements.txt * update aiortc version * rename variables with rtc_ prefix * changes * changes * change helper to assert_helper and stream_helper * rename variables with rtc_ prefix * add error handling * return whole connection * remove monkey patch and some cleaning * cleanup * tiny adjustments * tiny adjustments * proper typing and naming for rtc offer set * - remove async from on_video_track method - rename source -> target - add audio * audio always before video --------- Co-authored-by: henryruhs <info@henryruhs.com>
25 lines
848 B
Python
25 lines
848 B
Python
from time import sleep
|
|
|
|
import pytest
|
|
|
|
from facefusion.jobs.job_list import compose_job_list
|
|
from facefusion.jobs.job_manager import clear_jobs, create_job, init_jobs
|
|
from .assert_helper import get_test_jobs_directory
|
|
|
|
|
|
@pytest.fixture(scope = 'function', autouse = True)
|
|
def before_each() -> None:
|
|
clear_jobs(get_test_jobs_directory())
|
|
init_jobs(get_test_jobs_directory())
|
|
|
|
|
|
def test_compose_job_list() -> None:
|
|
create_job('job-test-compose-job-list-1')
|
|
sleep(0.5)
|
|
create_job('job-test-compose-job-list-2')
|
|
job_headers, job_contents = compose_job_list('drafted')
|
|
|
|
assert job_headers == [ 'job id', 'steps', 'date created', 'date updated', 'job status' ]
|
|
assert job_contents[0] == [ 'job-test-compose-job-list-1', 0, 'just now', None, 'drafted' ]
|
|
assert job_contents[1] == [ 'job-test-compose-job-list-2', 0, 'just now', None, 'drafted' ]
|