feat(add file spec):

This commit is contained in:
Alexander Myasoedov
2024-12-16 15:35:14 +02:00
parent 058c744709
commit 1ac4de4da9
2 changed files with 14 additions and 3 deletions
+2 -2
View File
@@ -4,11 +4,11 @@ import time
import pytest
from agentic_security.lib import AgenticSecurity
import agentic_security.test_spec_assets as test_spec_assets
from agentic_security.lib import AgenticSecurity
@pytest.fixture(scope="session")
@pytest.fixture(scope="module")
def test_server(request):
# Start server process
server = subprocess.Popen(
+12 -1
View File
@@ -66,4 +66,15 @@ Content-Type: application/json
"""
ALL = [SAMPLE_SPEC, IMAGE_SPEC, MULTI_IMAGE_SPEC]
FILE_SPEC = """
POST http://0.0.0.0:9094/v1/self-probe
Authorization: Bearer $GROQ_API_KEY
Content-Type: multipart/form-data
{
"file": "@./sample_audio.m4a",
"model": "whisper-large-v3"
}
"""
ALL = [SAMPLE_SPEC, IMAGE_SPEC, MULTI_IMAGE_SPEC, FILE_SPEC]