Skip to content

Commit

Permalink
fix: add open sans fony as defuat font in test file
Browse files Browse the repository at this point in the history
  • Loading branch information
aboutmydreams committed Sep 24, 2024
1 parent 69d7ef0 commit 998cc7e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pycapt",
version="1.0.18",
version="1.0.19",
author="aboutmydreams",
author_email="[email protected]",
description="a library that processes verification codes",
Expand Down
4 changes: 2 additions & 2 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
num_of_str=4,
font=30,
gray_value=255,
font_family='ヒラギノ角ゴシック W8.ttc')
font_family='OpenSans-Bold.ttf')
# pycapt.get_train_img()
Expand Down Expand Up @@ -88,7 +88,7 @@ def contrast(num):
noise_N=0.3,
noise_Z=2,
gray_value=255,
font_family='ヒラギノ角ゴシック W8.ttc')
font_family='OpenSans-Bold.ttf')
print(file_name)
img.show()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_train_img.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_generate_captcha_image(self):
num_of_str=4,
font=30,
gray_value=255,
font_family="OpenSans-Bold.ttf",
font_family=None,
)
img.save(self.image_path) # Save the generated image

Expand Down

0 comments on commit 998cc7e

Please sign in to comment.