Consolidate pytest.ini with pyproject.toml & add test
This commit is contained in:
@@ -14,6 +14,10 @@ dependencies = [
|
||||
"pytest-env (>=1.6.0,<2.0.0)"
|
||||
]
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
|
||||
[virtualenvs]
|
||||
in-project = true
|
||||
create = true
|
||||
@@ -35,6 +39,13 @@ pytest = ">=9.0"
|
||||
[tool.poetry.dependencies]
|
||||
python = ">=3.10,<4"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
[tool.pytest.ini_options]
|
||||
log_cli = true
|
||||
log_cli_level = "INFO"
|
||||
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
|
||||
log_cli_date_format="%Y-%m-%d %H:%M:%S"
|
||||
pythonpath = "./app"
|
||||
env = [
|
||||
"DATABASE_FILE=testdb.sqlite",
|
||||
"DATABASE_URL=sqlite:///testdb.sqlite?cache=shared"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user