mirror of
https://github.com/azaion/detections.git
synced 2026-04-22 13:26:31 +00:00
[AZ-180] Enhance setup and improve inference logging
- Added a new Cython extension for the engine factory to the setup configuration. - Updated the inference module to include additional logging for video batch processing and annotation callbacks. - Refactored test cases to standardize the detection endpoint responses and include channel IDs in headers for better event handling.
This commit is contained in:
@@ -79,10 +79,10 @@ def test_auth_image_still_writes_once_before_detect(reset_main_inference):
|
||||
r = client.post(
|
||||
"/detect/image",
|
||||
files={"file": ("p.jpg", img, "image/jpeg")},
|
||||
headers={"Authorization": f"Bearer {token}"},
|
||||
headers={"Authorization": f"Bearer {token}", "X-Channel-Id": "test-channel"},
|
||||
)
|
||||
# Assert
|
||||
assert r.status_code == 200
|
||||
assert r.status_code == 202
|
||||
assert wb_hits.count(expected_path) == 1
|
||||
with real_open(expected_path, "rb") as f:
|
||||
assert f.read() == img
|
||||
|
||||
Reference in New Issue
Block a user