Skip to content

Commit

Permalink
add ut for the check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Louis committed Jul 24, 2023
1 parent 19c397e commit 80562bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_apis/test_inferencers/test_pose2d_inferencer.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ def test_call(self):
self.assertSequenceEqual(results1['predictions'][0][0]['keypoints'],
results3['predictions'][3][0]['keypoints'])

with self.assertRaises(AssertionError):
for res in inferencer(inputs, vis_out_dir=f'{tmp_dir}/1.jpg'):
pass

# `inputs` is path to a video
inputs = 'tests/data/posetrack18/videos/000001_mpiinew_test/' \
'000001_mpiinew_test.mp4'
Expand Down

0 comments on commit 80562bf

Please sign in to comment.