add tests
This commit is contained in:
parent
a4dfffb40d
commit
d7ebe08091
|
@ -33,8 +33,9 @@ poetry install
|
|||
Tests are run using `pytest`:
|
||||
|
||||
```
|
||||
pytest
|
||||
poetry run pytest
|
||||
```
|
||||
|
||||
{% endif %}
|
||||
|
||||
## Author
|
||||
|
|
|
@ -17,6 +17,13 @@ python = "^3.10"
|
|||
[tool.poetry.scripts]
|
||||
{{ cookiecutter.project_slug }} = "{{ cookiecutter.project_slug }}.cli:main"
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
pytest = "*"
|
||||
pytest-cov = "*"
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
addopts = "--cov"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
|
|
4
{{ cookiecutter.project_slug }}/tests/test_dummy.py
Normal file
4
{{ cookiecutter.project_slug }}/tests/test_dummy.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
import {{ cookiecutter.project_slug }}
|
||||
|
||||
def test_dummy():
|
||||
assert True
|
|
@ -1,5 +1,6 @@
|
|||
import argparse
|
||||
|
||||
|
||||
def main():
|
||||
""" Console entrypoint for {{cookiecutter.project_slug}}."""
|
||||
parser = argparse.ArgumentParser()
|
||||
|
|
Loading…
Reference in a new issue