diff --git a/src/rda_python_template/hello_world.py b/src/rda_python_template/hello_world.py index eb6b243..0382c56 100644 --- a/src/rda_python_template/hello_world.py +++ b/src/rda_python_template/hello_world.py @@ -6,8 +6,9 @@ def main(): str = get_string('Hua') print(str) - def get_string(name): - return name + ": Hello World!" +def get_string(name): + return name + ": Hello World!" + # # call main() to start program # diff --git a/tests/test_hello_world.py b/tests/test_hello_world.py index 70771e6..673d846 100644 --- a/tests/test_hello_world.py +++ b/tests/test_hello_world.py @@ -1,7 +1,7 @@ # test_hello_world.py import pytest -from rda_python_template.hello_world import get_string +from src.rda_python_template.hello_world import get_string def test_get_string(): assert get_string('Bob') == 'Bob: Hello World!'