Fixed tests
ci/woodpecker/push/02-build-push Pipeline was successful
ci/woodpecker/manual/02-build-push Pipeline was successful
ci/woodpecker/manual/01-test Pipeline failed

This commit is contained in:
Roman Meshko
2026-05-06 16:46:31 +03:00
parent f0044cd188
commit cd6c2d5985
8 changed files with 26 additions and 5 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ def test_ft_p09_sse_event_delivery(
data = json.loads(event.data)
collected.append(data)
first_event.set()
if len(collected) >= 5:
if data.get("mediaStatus") in ("AIProcessed", "Error"):
break
except BaseException as e:
thread_exc.append(e)
+4 -1
View File
@@ -1,4 +1,5 @@
import json
import os
import threading
import time
import uuid
@@ -7,7 +8,9 @@ from pathlib import Path
import pytest
import sseclient
FIXTURES_DIR = Path(__file__).resolve().parent.parent / "fixtures"
FIXTURES_DIR = Path(
os.environ.get("MEDIA_DIR", Path(__file__).resolve().parent.parent / "fixtures")
)
_VIDEO = str(FIXTURES_DIR / "video_test01.mp4")