mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-06-24 06:09:55 +02:00
feat(add file spec):
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user