File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed
Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff 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
2525def 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
Original file line number Diff line number Diff line change 11astunparse == 1.6.3
2+ certifi == 2023.7.22
3+ charset-normalizer == 3.2.0
4+ coverage == 7.3.1
5+ docutils == 0.20.1
26exceptiongroup == 1.1.1
7+ idna == 3.4
8+ importlib-metadata == 6.8.0
9+ importlib-resources == 6.0.1
310iniconfig == 2.0.0
11+ jaraco.classes == 3.3.0
412Jinja2 == 3.1.2
13+ keyring == 24.2.0
14+ markdown-it-py == 3.0.0
515MarkupSafe == 2.1.3
16+ mdurl == 0.1.2
17+ more-itertools == 10.1.0
18+ nh3 == 0.2.14
619packaging == 23.1
720pdoc == 13.1.1
21+ pkginfo == 1.9.6
822pluggy == 1.0.0
923Pygments == 2.15.1
1024pytest == 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
1130six == 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
You can’t perform that action at this time.
0 commit comments