[Tests] Enable more tests that now work on Windows
This commit is contained in:
parent
209716f7cd
commit
a41f950d09
|
@ -11,7 +11,6 @@ from twisted.internet import defer
|
||||||
from twisted.internet.error import CannotListenError
|
from twisted.internet.error import CannotListenError
|
||||||
|
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
from deluge.common import windows_check
|
|
||||||
|
|
||||||
from . import common
|
from . import common
|
||||||
|
|
||||||
|
@ -20,9 +19,6 @@ from . import common
|
||||||
class DaemonBase:
|
class DaemonBase:
|
||||||
basetemp = None
|
basetemp = None
|
||||||
|
|
||||||
if windows_check():
|
|
||||||
skip = 'windows cant start_core not enough arguments for format string'
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def get_pytest_basetemp(self, request):
|
def get_pytest_basetemp(self, request):
|
||||||
self.basetemp = request.config.option.basetemp
|
self.basetemp = request.config.option.basetemp
|
||||||
|
|
|
@ -17,7 +17,7 @@ import deluge.component as component
|
||||||
import deluge.core.torrent
|
import deluge.core.torrent
|
||||||
import deluge.tests.common as common
|
import deluge.tests.common as common
|
||||||
from deluge._libtorrent import lt
|
from deluge._libtorrent import lt
|
||||||
from deluge.common import VersionSplit, utf8_encode_structure, windows_check
|
from deluge.common import VersionSplit, utf8_encode_structure
|
||||||
from deluge.core.core import Core
|
from deluge.core.core import Core
|
||||||
from deluge.core.rpcserver import RPCServer
|
from deluge.core.rpcserver import RPCServer
|
||||||
from deluge.core.torrent import Torrent
|
from deluge.core.torrent import Torrent
|
||||||
|
@ -173,8 +173,6 @@ class TorrentTestCase(BaseTestCase):
|
||||||
# self.print_priority_list(priorities)
|
# self.print_priority_list(priorities)
|
||||||
|
|
||||||
def test_torrent_error_data_missing(self):
|
def test_torrent_error_data_missing(self):
|
||||||
if windows_check():
|
|
||||||
raise unittest.SkipTest('unexpected end of file in bencoded string')
|
|
||||||
options = {'seed_mode': True}
|
options = {'seed_mode': True}
|
||||||
filename = common.get_test_data_file('test_torrent.file.torrent')
|
filename = common.get_test_data_file('test_torrent.file.torrent')
|
||||||
with open(filename, 'rb') as _file:
|
with open(filename, 'rb') as _file:
|
||||||
|
@ -191,8 +189,6 @@ class TorrentTestCase(BaseTestCase):
|
||||||
self.assert_state(torrent, 'Error')
|
self.assert_state(torrent, 'Error')
|
||||||
|
|
||||||
def test_torrent_error_resume_original_state(self):
|
def test_torrent_error_resume_original_state(self):
|
||||||
if windows_check():
|
|
||||||
raise unittest.SkipTest('unexpected end of file in bencoded string')
|
|
||||||
options = {'seed_mode': True, 'add_paused': True}
|
options = {'seed_mode': True, 'add_paused': True}
|
||||||
filename = common.get_test_data_file('test_torrent.file.torrent')
|
filename = common.get_test_data_file('test_torrent.file.torrent')
|
||||||
with open(filename, 'rb') as _file:
|
with open(filename, 'rb') as _file:
|
||||||
|
@ -212,8 +208,6 @@ class TorrentTestCase(BaseTestCase):
|
||||||
torrent.force_recheck()
|
torrent.force_recheck()
|
||||||
|
|
||||||
def test_torrent_error_resume_data_unaltered(self):
|
def test_torrent_error_resume_data_unaltered(self):
|
||||||
if windows_check():
|
|
||||||
raise unittest.SkipTest('unexpected end of file in bencoded string')
|
|
||||||
if VersionSplit(lt.__version__) >= VersionSplit('1.2.0.0'):
|
if VersionSplit(lt.__version__) >= VersionSplit('1.2.0.0'):
|
||||||
raise unittest.SkipTest('Test not working as expected on lt 1.2 or greater')
|
raise unittest.SkipTest('Test not working as expected on lt 1.2 or greater')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue