mirror of
https://github.com/azaion/detections.git
synced 2026-04-22 09:06:31 +00:00
fix some cython code
This commit is contained in:
@@ -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
|
||||
@@ -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
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user