Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkeroo committed Aug 30, 2024
1 parent 3e4ca49 commit 1bb0d37
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/unittests/test_creators/test_detections.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import pytest

from depthai_nodes.ml.messages import (
ImgDetectionsWithKeypoints,
ImgDetectionWithKeypoints,
ImgDetectionExtended,
ImgDetectionsExtended,
)
from depthai_nodes.ml.messages.creators.detection import create_detection_message

Expand Down Expand Up @@ -172,10 +172,9 @@ def test_bboxes_scores_keypoints():

message = create_detection_message(bboxes, scores, None, keypoints)

assert isinstance(message, ImgDetectionsWithKeypoints)
assert isinstance(message, ImgDetectionsExtended)
assert all(
isinstance(detection, ImgDetectionWithKeypoints)
for detection in message.detections
isinstance(detection, ImgDetectionExtended) for detection in message.detections
)

for i, detection in enumerate(message.detections):
Expand Down

0 comments on commit 1bb0d37

Please sign in to comment.