fix some cython code

This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-03-29 21:18:18 +03:00
parent ad5530b9ef
commit 6269a7485c
32 changed files with 17108 additions and 2728 deletions
+22
View File
@@ -0,0 +1,22 @@
name: detections-mocks
services:
mock-loader:
build: ./mocks/loader
ports:
- "18080:8080"
volumes:
- ./fixtures:/models
networks:
- mocks-net
mock-annotations:
build: ./mocks/annotations
ports:
- "18081:8081"
networks:
- mocks-net
networks:
mocks-net:
driver: bridge
+1 -1
View File
@@ -69,7 +69,7 @@ services:
- ./results:/results
networks:
- e2e-net
command: ["pytest", "--csv=/results/report.csv", "-v", "-x"]
command: ["pytest", "--csv=/results/report.csv", "-v"]
networks:
e2e-net:
+5 -1
View File
@@ -68,7 +68,11 @@ source "$VENV_DIR/bin/activate"
echo "--- Installing dependencies..."
pip install -q --upgrade pip setuptools wheel
pip install -q -r "$PROJECT_DIR/requirements.txt"
if [[ "$(uname -s)" == "Darwin" && -f "$PROJECT_DIR/requirements-macos.txt" ]]; then
pip install -q -r "$PROJECT_DIR/requirements-macos.txt"
else
pip install -q -r "$PROJECT_DIR/requirements.txt"
fi
pip install -q -r "$SCRIPT_DIR/requirements.txt" 2>/dev/null || true
pip install -q flask gunicorn
+1 -1
View File
@@ -98,7 +98,7 @@ def test_ft_n04_duplicate_media_id_409(
warm_engine, http_client, jwt_token
):
media_id = "dup-test"
body = _ai_config_video()
body = _ai_config_image()
headers = {"Authorization": f"Bearer {jwt_token}"}
r1 = http_client.post(f"/detect/{media_id}", json=body, headers=headers)
assert r1.status_code == 200