Skip to content

Commit

Permalink
Merge pull request conda#8 from walkerh/master
Browse files Browse the repository at this point in the history
Entry point function now returns None
  • Loading branch information
msarahan authored Mar 7, 2018
2 parents ed9f820 + d11d495 commit 3c3d64d
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 3c3d64d

Please sign in to comment.