mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 07:28:39 +00:00
[Tests] Ignore 3rd-party deprecation warnings in pytest
Move pytest config from tox to pyproject and ignore deprecation warning generated in 3rd-party libraries. Fixed GObject deprecation warning
This commit is contained in:
parent
7336877928
commit
d00068423f
3 changed files with 18 additions and 12 deletions
|
@ -72,7 +72,7 @@ class ListView:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__gsignals__ = {
|
__gsignals__ = {
|
||||||
'button-press-event': (GObject.SIGNAL_RUN_LAST, None, (object,))
|
'button-press-event': (GObject.SignalFlags.RUN_LAST, None, (object,))
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, title=None, cell_renderer=None, **args):
|
def __init__(self, title=None, cell_renderer=None, **args):
|
||||||
|
|
|
@ -9,3 +9,20 @@ skip-string-normalization = true
|
||||||
|
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
profile = "black"
|
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:43",
|
||||||
|
"ignore:twisted.web.resource.*:DeprecationWarning",
|
||||||
|
]
|
||||||
|
|
11
tox.ini
11
tox.ini
|
@ -7,17 +7,6 @@
|
||||||
envlist = py3, lint, docs
|
envlist = py3, lint, docs
|
||||||
minversion=3.0
|
minversion=3.0
|
||||||
|
|
||||||
[pytest]
|
|
||||||
# Hide logged warnings and errors in test output.
|
|
||||||
log_cli_level = CRITICAL
|
|
||||||
addopts = -p no:warnings --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
|
|
||||||
|
|
||||||
# =================
|
# =================
|
||||||
# Base dependencies
|
# Base dependencies
|
||||||
# =================
|
# =================
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue