test restructuring via pytest

This commit is contained in:
sigma67 2024-01-02 21:58:33 +01:00 • committed by sigma67
commit 69dd4a9f2f
19 changed files with 858 additions and 619 deletions

View file

@ -36,8 +36,17 @@ include-package-data=false
[tool.setuptools.package-data]
"*" = ["**.rst", "**.py", "**.mo"]
###############
# DEVELOPMENT #
###############
[tool.pytest.ini_options]
python_functions = "test_*"
testpaths = ["tests"]
addopts = "--verbose --cov"
[tool.coverage.run]
command_line = "-m unittest discover tests"
source = ["ytmusicapi"]
[tool.ruff]
line-length = 110
@ -59,4 +68,6 @@ dev = [
'sphinx-rtd-theme',
"ruff>=0.1.9",
"mypy>=1.8.0",
"pytest>=7.4.4",
"pytest-cov>=4.1.0",
]