Skip to content

Commit

Permalink
dev(narugo): add test case for model not found
Browse files Browse the repository at this point in the history
  • Loading branch information
narugo1992 committed Sep 17, 2024
1 parent 10514ed commit 5280b44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/detect/test_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ def test_detect_heads(self):

def test_detect_heads_none(self):
assert detect_heads(get_testfile('png_full.png')) == []

def test_detect_heads_not_found(self):
with pytest.raises(ValueError):
_ = detect_heads(get_testfile('genshin_post.png'), model_name='not_found')

0 comments on commit 5280b44

Please sign in to comment.