From d877cf2a7554fc6e2d7cbba17c73e218008ca6db Mon Sep 17 00:00:00 2001 From: zaihuaji Date: Wed, 15 Jan 2025 12:17:14 -0600 Subject: [PATCH 1/2] remove indent --- src/rda_python_template/hello_world.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 # From ecb818031496526fe0f2bec75fe5248fb021a87d Mon Sep 17 00:00:00 2001 From: zaihuaji Date: Wed, 15 Jan 2025 14:16:43 -0600 Subject: [PATCH 2/2] from src.rda_python_template.hello_world --- tests/test_hello_world.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!'