Skip to content

Commit 4720f7b

Browse files
committed
added missing api test case
1 parent d81b144 commit 4720f7b

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

cowsay/tests/test_api.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_char_names():
1414
assert cowsay.char_names == sorted(characters)
1515

1616

17-
def test_draw():
17+
def test_draw_error():
1818

1919
with pytest.raises(cowsay.CowsayError) as e:
2020
cowsay.draw('', '')
@@ -24,6 +24,11 @@ def test_draw():
2424

2525
def test_get_output_string():
2626

27+
assert isinstance(cowsay.get_output_string(char='cow', text='Hello'), str)
28+
29+
30+
def test_get_output_string_error():
31+
2732
with pytest.raises(cowsay.CowsayError) as e:
2833
cowsay.get_output_string('random', 'random text')
2934

requirements.txt

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,35 @@
11
astunparse==1.6.3
2+
certifi==2023.7.22
3+
charset-normalizer==3.2.0
4+
coverage==7.3.1
5+
docutils==0.20.1
26
exceptiongroup==1.1.1
7+
idna==3.4
8+
importlib-metadata==6.8.0
9+
importlib-resources==6.0.1
310
iniconfig==2.0.0
11+
jaraco.classes==3.3.0
412
Jinja2==3.1.2
13+
keyring==24.2.0
14+
markdown-it-py==3.0.0
515
MarkupSafe==2.1.3
16+
mdurl==0.1.2
17+
more-itertools==10.1.0
18+
nh3==0.2.14
619
packaging==23.1
720
pdoc==13.1.1
21+
pkginfo==1.9.6
822
pluggy==1.0.0
923
Pygments==2.15.1
1024
pytest==7.3.1
25+
readme-renderer==42.0
26+
requests==2.31.0
27+
requests-toolbelt==1.0.0
28+
rfc3986==2.0.0
29+
rich==13.5.2
1130
six==1.16.0
12-
tomli==2.0.1
31+
tomli==2.0.1
32+
twine==4.0.2
33+
typing_extensions==4.7.1
34+
urllib3==2.0.4
35+
zipp==3.16.2

0 commit comments

Comments
 (0)