Skip to content

Commit 788d6af

Browse files
committed
Update test_image_to_text.py
1 parent ace3744 commit 788d6af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_image_to_text.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
class TestImageToTextBase(BaseTest):
88
def test_captcha_handler_exist(self):
9-
assert "captcha_handler" in ImageToText.__dict__.keys()
10-
assert "aio_captcha_handler" in ImageToText.__dict__.keys()
9+
instance = ImageToText(api_key=self.get_random_string(36))
10+
assert "captcha_handler" in instance.__dir__()
11+
assert "aio_captcha_handler" in instance.__dir__()
1112

1213

1314
class TestImageToText(BaseTest):

0 commit comments

Comments
 (0)