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