mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-15 09:00:51 -08:00
I also upgraded the flake.nix file. - `mkShell` now use `packages` instead of `buildInputs` (See https://discourse.nixos.org/t/difference-between-buildinputs-and-packages-in-mkshell/60598/2) - Now using `venvShellHook` to create the Python virtual environment - Remove useless variables - Added `meta` attrset - Now using `python3Packages` variables instead - Explicitly use the `build-system` field - Now using `substituteInPlace` within `postPatch` - Using the `pyproject` field instead of `format` - Removed bad pratices, etc..
48 lines
846 B
INI
48 lines
846 B
INI
[tool.pytest.ini_options]
|
|
minversion = "6.0"
|
|
addopts = [
|
|
"-ra",
|
|
"--strict-markers",
|
|
"--strict-config",
|
|
"--cov=fastanime.cli.interactive",
|
|
"--cov-report=term-missing",
|
|
"--cov-report=html:htmlcov",
|
|
"--cov-report=xml",
|
|
"-v",
|
|
]
|
|
testpaths = [
|
|
"tests",
|
|
]
|
|
python_files = [
|
|
"test_*.py",
|
|
"*_test.py",
|
|
]
|
|
python_classes = [
|
|
"Test*",
|
|
]
|
|
python_functions = [
|
|
"test_*",
|
|
]
|
|
markers = [
|
|
"unit: Unit tests",
|
|
"integration: Integration tests",
|
|
"slow: Slow running tests",
|
|
"network: Tests requiring network access",
|
|
"auth: Tests requiring authentication",
|
|
]
|
|
filterwarnings = [
|
|
"ignore::DeprecationWarning",
|
|
"ignore::PendingDeprecationWarning",
|
|
]
|
|
|
|
# Test discovery patterns
|
|
collect_ignore = [
|
|
"setup.py",
|
|
]
|
|
|
|
# Pytest plugins
|
|
required_plugins = [
|
|
"pytest-cov",
|
|
"pytest-mock",
|
|
]
|