mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-06-23 21:59:57 +02:00
fix(tests):
This commit is contained in:
@@ -64,7 +64,7 @@ async def scan_csv(
|
||||
enableMultiStepAttack: bool = Query(False),
|
||||
):
|
||||
# TODO: content dataset to fuzzer
|
||||
content = await file.read()
|
||||
content = await file.read() # noqa
|
||||
llm_spec = await llmSpec.read()
|
||||
|
||||
scan_parameters = Scan(
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
import agentic_security.test_spec_assets as test_spec_assets
|
||||
from agentic_security.routes.scan import router
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
client = TestClient(router)
|
||||
|
||||
|
||||
Generated
+21
-2
@@ -1,4 +1,4 @@
|
||||
# This file is automatically @generated by Poetry 1.8.5 and should not be changed by hand.
|
||||
# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand.
|
||||
|
||||
[[package]]
|
||||
name = "aiohappyeyeballs"
|
||||
@@ -1055,6 +1055,25 @@ python-dateutil = ">=2.8.1"
|
||||
[package.extras]
|
||||
dev = ["flake8", "markdown", "twine", "wheel"]
|
||||
|
||||
[[package]]
|
||||
name = "gtts"
|
||||
version = "2.5.4"
|
||||
description = "gTTS (Google Text-to-Speech), a Python library and CLI tool to interface with Google Translate text-to-speech API"
|
||||
optional = false
|
||||
python-versions = ">=3.7"
|
||||
files = [
|
||||
{file = "gTTS-2.5.4-py3-none-any.whl", hash = "sha256:5dd579377f9f5546893bc26315ab1f846933dc27a054764b168f141065ca8436"},
|
||||
{file = "gtts-2.5.4.tar.gz", hash = "sha256:f5737b585f6442f677dbe8773424fd50697c75bdf3e36443585e30a8d48c1884"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
click = ">=7.1,<8.2"
|
||||
requests = ">=2.27,<3"
|
||||
|
||||
[package.extras]
|
||||
docs = ["sphinx", "sphinx-autobuild", "sphinx-click", "sphinx-mdinclude", "sphinx-rtd-theme"]
|
||||
tests = ["pytest (>=7.1.3,<8.4.0)", "pytest-cov", "testfixtures"]
|
||||
|
||||
[[package]]
|
||||
name = "h11"
|
||||
version = "0.14.0"
|
||||
@@ -4365,4 +4384,4 @@ propcache = ">=0.2.0"
|
||||
[metadata]
|
||||
lock-version = "2.0"
|
||||
python-versions = "^3.11"
|
||||
content-hash = "211d8b41dfd43afee62345619497bd7b6b64dad2b39ad2013c47beafd3f0a26b"
|
||||
content-hash = "d20462abe4f8e14e261d9a6b4801d127d573575173898583f163737d587710aa"
|
||||
|
||||
@@ -47,6 +47,7 @@ jinja2 = "^3.1.4"
|
||||
python-multipart = "^0.0.20"
|
||||
tomli = "^2.2.1"
|
||||
rich = "13.9.4"
|
||||
gTTS = "^2.5.4"
|
||||
# garak = { version = "*", optional = true }
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user