Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/rda_python_template/hello_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down
2 changes: 1 addition & 1 deletion tests/test_hello_world.py
Original file line number Diff line number Diff line change
@@ -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!'
Expand Down
Loading