File tree Expand file tree Collapse file tree
{{cookiecutter.project_name}}
{{cookiecutter.package_name}} Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 python3 -m pip install .[dev]
3333 - name : Run pytest
3434 run : |
35- pytest
35+ pytest -v
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def test_pytest(baked_with_development_dependencies):
4040 project_dir , env_bin = baked_with_development_dependencies
4141 pytest_output = run ([f'{ env_bin } pytest' ], project_dir )
4242 assert pytest_output .returncode == 0
43- assert '== 3 passed in' in pytest_output .stdout
43+ assert '== 4 passed in' in pytest_output .stdout
4444 assert (project_dir / 'coverage.xml' ).exists ()
4545 assert (project_dir / 'htmlcov/index.html' ).exists ()
4646
Original file line number Diff line number Diff line change 77from {{ cookiecutter .package_name }} import my_module
88
99
10- def test_module_import ():
11- assert my_module not in sys . modules
10+ def test_hello ():
11+ assert my_module . hello ( 'nlesc' ) == 'Hello nlesc!'
1212
1313
1414def test_something ():
Original file line number Diff line number Diff line change 77
88__author__ = "{{ cookiecutter.full_name }}"
99__email__ = "{{ cookiecutter.email }}"
10- __version__ = __version__
Original file line number Diff line number Diff line change 11"""Documentation about the {{ cookiecutter.package_name }} module."""
2- import logging
3-
4-
5- logger = logging .getLogger (__name__ )
6-
72
83# FIXME: put actual code here
9- def example ( ):
10- logger . info ( "Providing information about the excecution of the function." )
4+ def hello ( name ):
5+ return f'Hello { name } !'
You can’t perform that action at this time.
0 commit comments