mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-27 18:40:36 +00:00
[Tests] Fix failing tracker_icons test
Disable the testing with seo.com as the site certificate has expired. Ideally should not be testing against live sites and instead use request replay tool such as VCR.py.
This commit is contained in:
parent
157f6ff62a
commit
582f60ea0b
@ -8,6 +8,7 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
from twisted.trial.unittest import SkipTest
|
||||||
|
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
import deluge.ui.tracker_icons
|
import deluge.ui.tracker_icons
|
||||||
@ -63,6 +64,7 @@ class TrackerIconsTestCase(BaseTestCase):
|
|||||||
|
|
||||||
def test_get_seo_ico_with_sni(self):
|
def test_get_seo_ico_with_sni(self):
|
||||||
# seo using certificates with SNI support only
|
# seo using certificates with SNI support only
|
||||||
|
raise SkipTest('Site certificate expired')
|
||||||
icon = TrackerIcon(common.get_test_data_file('seo.ico'))
|
icon = TrackerIcon(common.get_test_data_file('seo.ico'))
|
||||||
d = self.icons.fetch('www.seo.com')
|
d = self.icons.fetch('www.seo.com')
|
||||||
d.addCallback(self.assertNotIdentical, None)
|
d.addCallback(self.assertNotIdentical, None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user