Skip to content

Commit

Permalink
Merge pull request #2 from NCAR/hua-work-template
Browse files Browse the repository at this point in the history
remove indent
  • Loading branch information
zaihuaji authored Jan 15, 2025
2 parents 2ad6fe6 + ecb8180 commit 7c3b320
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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

0 comments on commit 7c3b320

Please sign in to comment.