deluge/pyproject.toml
Calum Lind 9ce8afe507
[Tests] Fix component warning in Plugin tests
The component fixture was warning about existing registered components since
the standalone client was setup before the componentregistry test was performed.
The problem is due to fixture ordering with the setup fixture running
first since it was marked with autouse followed by component fixture.

* Fixed warning by moving component fixture as a dependency of the set_up fixture
* Cleaned up unneeded code
* Added try..except to catch CorePluginBase KeyError deregistering
RPCServer since component fixture already removed it.
* Ignore test-specific Twisted readBody warnings
2023-02-28 14:21:18 +00:00

31 lines
828 B
TOML

[build-system]
requires = [
"setuptools",
"wheel",
]
[tool.black]
skip-string-normalization = true
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
# Hide logged warnings and errors in test output.
log_cli_level = "CRITICAL"
addopts = "--basetemp=_pytest_temp"
markers = [
"todo: Tests that are yet to be written",
"gtkui: Tests for GTK code",
"security: Security related tests",
"slow: Tests that are particularly slow",
"internet: Tests that require internet connectivity",
]
filterwarnings = [
"ignore::DeprecationWarning:gi",
"ignore::DeprecationWarning:twisted.internet.gireactor",
"ignore:twisted.web.resource.*:DeprecationWarning",
"ignore:Using readBody.*:DeprecationWarning",
"ignore:resume_data is deprecated.*:DeprecationWarning:deluge.core.alertmanager",
]