Add basic unittests
Some checks failed
Build Docker image / test (push) Failing after 1m6s
Build Docker image / build (push) Has been skipped

This commit is contained in:
Roman Krček
2024-10-13 11:33:29 +02:00
parent b2254e99a2
commit 4879c05a3b
6 changed files with 341 additions and 10 deletions

10
tox.ini
View File

@@ -1,9 +1,10 @@
[tox]
envlist = py311, flake8, bandit, codespell
envlist = py311, flake8, bandit, codespell, unit
[testenv]
basepython = python3.11
deps = -r {toxinidir}/test-requirements.txt
deps = -r {toxinidir}/test-requirements.txt
-r {toxinidir}/requirements.txt
[testenv:flake8]
commands = flake8 telegram_downloader_bot/
@@ -12,4 +13,7 @@ commands = flake8 telegram_downloader_bot/
commands = bandit -r telegram_downloader_bot/
[testenv:codespell]
commands = codespell telegram_downloader_bot/
commands = codespell telegram_downloader_bot/
[testenv:unit]
commands = stestr run --test-path tests/