test: Add comprehensive test suite for extract.py (#400)

This commit is contained in:
1cu
2025-02-05 23:35:45 +01:00
committed by GitHub
parent 08197eabae
commit f4f00b9563
4 changed files with 723 additions and 60 deletions

View File

@@ -222,7 +222,14 @@ max-positional-arguments = 6 # max. number of positional args for function / me
# https://docs.pytest.org/en/stable/reference.html#confval-addopts
addopts = "--strict-markers -p no:cacheprovider --doctest-modules --cov=kleinanzeigen_bot --cov-report=term-missing --ignore=kleinanzeigen_bot/__main__.py"
markers = [
"itest: marks a test as an integration test (i.e. a test with external dependencies)"
"itest: marks a test as an integration test (i.e. a test with external dependencies)",
"asyncio: mark test as async"
]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
filterwarnings = [
"ignore:Exception ignored in:pytest.PytestUnraisableExceptionWarning",
"ignore::DeprecationWarning"
]
[dependency-groups]
@@ -231,7 +238,8 @@ dev = [
"bandit",
"toml",
"tomli",
"pytest",
"pytest>=8.3.4",
"pytest-asyncio>=0.25.3",
"pytest-rerunfailures",
"pyinstaller",
"pylint",