test: drop webrtc-dependent test, remove webrtc extra from CI

This commit is contained in:
Mark Backman
2026-05-04 16:42:05 -04:00
parent f67e3ef0b2
commit 89f10dd9a1
2 changed files with 2 additions and 14 deletions

View File

@@ -49,7 +49,6 @@ jobs:
--extra runner \ --extra runner \
--extra sagemaker \ --extra sagemaker \
--extra tracing \ --extra tracing \
--extra webrtc \
--extra websocket --extra websocket
- name: Test with pytest - name: Test with pytest

View File

@@ -8,12 +8,10 @@ import os
import tempfile import tempfile
import unittest import unittest
from pathlib import Path from pathlib import Path
from types import SimpleNamespace
from fastapi import FastAPI, HTTPException from fastapi import HTTPException
from fastapi.testclient import TestClient
from pipecat.runner.run import _resolve_download_path, _setup_webrtc_routes from pipecat.runner.run import _resolve_download_path
class TestRunnerDownloads(unittest.TestCase): class TestRunnerDownloads(unittest.TestCase):
@@ -41,15 +39,6 @@ class TestRunnerDownloads(unittest.TestCase):
self.assertEqual(context.exception.status_code, 403) self.assertEqual(context.exception.status_code, 403)
def test_download_file_returns_404_when_folder_not_configured(self):
app = FastAPI()
args = SimpleNamespace(folder=None, esp32=False, host="127.0.0.1")
_setup_webrtc_routes(app, args)
response = TestClient(app).get("/files/recording.txt")
self.assertEqual(response.status_code, 404)
def test_resolve_download_path_blocks_decoded_encoded_slashes(self): def test_resolve_download_path_blocks_decoded_encoded_slashes(self):
with tempfile.TemporaryDirectory() as tmpdir: with tempfile.TemporaryDirectory() as tmpdir:
root = Path(tmpdir) root = Path(tmpdir)