mirror of
https://github.com/azaion/detections.git
synced 2026-04-22 07:06:32 +00:00
[AZ-178] Add real-video streaming test, update e2e tests, mark task done
- Add tests/test_az178_realvideo_streaming.py: integration test that validates frame decoding begins while upload is still in progress using a real video fixture - Add conftest.py: pytest plugin for per-test duration reporting - Update e2e tests (async_sse, performance, security, streaming_video_upload, video) and run-tests.sh for updated test suite - Move AZ-178 task to done/; add data/ to .gitignore (StreamingBuffer temp files) - Update autopilot state to step 12 (Security Audit) for new feature cycle Made-with: Cursor
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.hookimpl(hookwrapper=True)
|
||||
def pytest_runtest_makereport(item, call):
|
||||
outcome = yield
|
||||
report = outcome.get_result()
|
||||
if report.when == "call":
|
||||
report._duration_str = f"{report.duration:.2f}s"
|
||||
|
||||
|
||||
def pytest_report_teststatus(report, config):
|
||||
if report.when == "call" and hasattr(report, "_duration_str"):
|
||||
t = report._duration_str
|
||||
if report.passed:
|
||||
return "passed", ".", (f"PASSED ({t})", {"green": True})
|
||||
if report.failed:
|
||||
return "failed", "F", (f"FAILED ({t})", {"red": True})
|
||||
if report.skipped:
|
||||
return "skipped", "s", (f"SKIPPED ({t})", {"yellow": True})
|
||||
Reference in New Issue
Block a user