mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 02:31:45 +01:00
separate unit/integration tests
This commit is contained in:
@@ -73,7 +73,8 @@ format = "autopep8 --recursive --in-place kleinanzeigen_bot tests"
|
||||
lint = "pylint -v kleinanzeigen_bot tests"
|
||||
scan = "bandit -c pyproject.toml -r kleinanzeigen_bot"
|
||||
test = "python -m pytest --capture=tee-sys -v"
|
||||
|
||||
utest = "python -m pytest --capture=tee-sys -v -m 'not itest'"
|
||||
itest = "python -m pytest --capture=tee-sys -v -m 'itest'"
|
||||
|
||||
#####################
|
||||
# autopep8
|
||||
@@ -91,6 +92,7 @@ ignore = [ # https://github.com/hhatto/autopep8#features
|
||||
]
|
||||
aggressive = 3
|
||||
|
||||
|
||||
#####################
|
||||
# bandit
|
||||
# https://pypi.org/project/bandit/
|
||||
@@ -161,4 +163,7 @@ max-statements = 70
|
||||
#####################
|
||||
[tool.pytest.ini_options]
|
||||
# https://docs.pytest.org/en/stable/reference.html#confval-addopts
|
||||
addopts = "-p no:cacheprovider --doctest-modules --ignore=__pypackages__ --ignore=kleinanzeigen_bot/__main__.py"
|
||||
addopts = "--strict-markers -p no:cacheprovider --doctest-modules --ignore=__pypackages__ --ignore=kleinanzeigen_bot/__main__.py"
|
||||
markers = [
|
||||
"itest: marks a test as an integration test (i.e. a test with external dependencies)"
|
||||
]
|
||||
Reference in New Issue
Block a user