Skip to content

Commit 546c32f

Browse files
authored
Create test_hello_world.py
1 parent cb67fde commit 546c32f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_hello_world.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# test_hello_world.py
2+
3+
import pytest
4+
from rda_python_template.hello_world import get_string
5+
6+
def test_get_string():
7+
assert get_string('Bob') == 'Bob: Hello World!'
8+
9+
def test_raises_exception_on_non_string_arguments():
10+
with pytest.raises(TypeError):
11+
get_string(9)

0 commit comments

Comments
 (0)