add tests

This commit is contained in:
Histausse 2023-05-15 22:41:42 +02:00
parent a4dfffb40d
commit d7ebe08091
5 changed files with 14 additions and 2 deletions

View file

@ -1,6 +1,5 @@
# TODO:
- tests
- add AGPL
- add CI
- add flake

View file

@ -33,8 +33,9 @@ poetry install
Tests are run using `pytest`:
```
pytest
poetry run pytest
```
{% endif %}
## Author

View file

@ -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"

View file

@ -0,0 +1,4 @@
import {{ cookiecutter.project_slug }}
def test_dummy():
assert True

View file

@ -1,5 +1,6 @@
import argparse
def main():
""" Console entrypoint for {{cookiecutter.project_slug}}."""
parser = argparse.ArgumentParser()