fix tests

This commit is contained in:
henryruhs committed 2026-11-03 21:49:06 +01:00
1 parent cd0c75e424
commit 27ab60813f
2 files changed
+1 -7

No files matched your search

+1 -1
View File
@@ -174,7 +174,7 @@ def test_process_video(video_codec : VideoCodec, payload_type : int, session_id
assert rtc_manager.has_peer() is False
def test_destroy_stream() -> None:
def test_destroy_video() -> None:
peer_connection = rtc.create_peer_connection()
rtc.add_video_track(peer_connection, 'sendonly', 'vp8', 96)
rtc_peer : RtcPeer =\
-6
View File
@@ -18,19 +18,13 @@ def test_force_download(mocker : MockerFixture) -> None:
state_manager.init_item('download_providers', [ 'github', 'huggingface' ])
state_manager.init_item('download_scope', 'lite')
conditional_download_files_mock = mocker.patch('facefusion.core.conditional_download_files', return_value = True)
start_mock = mocker.spy(process_manager, 'start')
end_mock = mocker.spy(process_manager, 'end')
assert core.force_download() == 0
assert start_mock.call_count == 1
assert end_mock.call_count == 1
assert process_manager.is_pending() is True
conditional_download_files_mock.return_value = False
assert core.force_download() == 1
assert start_mock.call_count == 2
assert end_mock.call_count == 2
assert process_manager.is_pending() is True