Skip to content

Commit

Permalink
Entry point function now returns None
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerh committed Dec 13, 2017
1 parent ed9f820 commit d11d495
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion {{cookiecutter.repo_name}}/tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from {{ cookiecutter.package_name }} import cli

def test_cli_template():
assert cli.cli() == 'CLI template'
assert cli.cli() is None
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
def cli():
return "CLI template"
print("CLI template")
# No return value means no error.
# Return a value of 1 or higher to signify an error.
# See https://docs.python.org/3/library/sys.html#sys.exit

0 comments on commit d11d495

Please sign in to comment.