tests: set up boilerplate

This commit is contained in:
2026-07-26 21:36:29 +09:00
parent aeb38b3ed4
commit fd1f6c54a4
7 changed files with 337 additions and 4 deletions
+19
View File
@@ -25,6 +25,13 @@ dev = [
"werkzeug",
"poethepoet",
]
test = [
"coverage-badge>=1.1.2",
"pytest>=9.0.3",
"pytest-cov>=7.1.0",
"pytest-html>=4.2.0",
"sqlparse>=0.5.5",
]
[project.scripts]
worblehat = "worblehat:main"
@@ -84,3 +91,15 @@ ignore = [
"S101", # assert detected
# "S311", # non-cryptographic random generator
]
[tool.pytest.ini_options]
addopts = [
# "--cov=dibbler.lib",
# "--cov=dibbler.models",
# "--cov=dibbler.queries",
"--cov-report=html",
"--cov-branch",
"--self-contained-html",
"--html=./test-report/index.html",
]