Skip to content

Commit

Permalink
dev(narugo): more unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
narugo1992 committed Sep 8, 2024
1 parent 89fef6e commit 6218299
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/sd/test_nai.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,5 +206,9 @@ def test_save_image_with_naimeta_both_no_with_title(self, nai3_clear_file, nai3_
)
assert get_naimeta_from_image('image.png') is None

def test_image_error_with_wrong_format(self):
assert get_naimeta_from_image(get_testfile('118519492_p0.png')) is None
@pytest.mark.parametrize(['file'], [
('118519492_p0.png',),
('118438300_p1.png',),
])
def test_image_error_with_wrong_format(self, file):
assert get_naimeta_from_image(get_testfile(file)) is None
Binary file added test/testfile/118438300_p1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6218299

Please sign in to comment.