summaryrefslogtreecommitdiffstats
path: root/deluge/plugins/Stats/deluge_stats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2022-03-02 12:35:20 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2022-03-02 12:45:15 +0000
commit11fe22e4cd283290baad8f7e506d975a2f036d60 (patch)
treea29deda9f6508305fcf47118fdb20c80208fa244 /deluge/plugins/Stats/deluge_stats
parenta683b7e8309d81304cd9799d54479ac3eae71aa8 (diff)
downloaddeluge-11fe22e4cd283290baad8f7e506d975a2f036d60.tar.gz
deluge-11fe22e4cd283290baad8f7e506d975a2f036d60.tar.bz2
deluge-11fe22e4cd283290baad8f7e506d975a2f036d60.zip
[Tests] Remove reference to Twisted Trial
With the move to pytest remove remainings documentation or comments that refer to Trial.
Diffstat (limited to 'deluge/plugins/Stats/deluge_stats')
-rw-r--r--deluge/plugins/Stats/deluge_stats/tests/test_stats.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/deluge/plugins/Stats/deluge_stats/tests/test_stats.py b/deluge/plugins/Stats/deluge_stats/tests/test_stats.py
index ce3bafa1f..9c66ee107 100644
--- a/deluge/plugins/Stats/deluge_stats/tests/test_stats.py
+++ b/deluge/plugins/Stats/deluge_stats/tests/test_stats.py
@@ -6,7 +6,6 @@
import pytest
import pytest_twisted
from twisted.internet import defer
-from twisted.trial import unittest
import deluge.component as component
from deluge.common import fsize, fspeed
@@ -38,7 +37,7 @@ class TestStatsPlugin:
def test_client_totals(self):
plugins = yield client.core.get_available_plugins()
if 'Stats' not in plugins:
- raise unittest.SkipTest('WebUi plugin not available for testing')
+ pytest.skip('Stats plugin not available for testing')
totals = yield client.stats.get_totals()
assert totals['total_upload'] == 0
@@ -51,7 +50,7 @@ class TestStatsPlugin:
def test_session_totals(self):
plugins = yield client.core.get_available_plugins()
if 'Stats' not in plugins:
- raise unittest.SkipTest('WebUi plugin not available for testing')
+ pytest.skip('Stats plugin not available for testing')
totals = yield client.stats.get_session_totals()
assert totals['total_upload'] == 0