[Tests] Fixes to make tests pass
* Fix GTKUI column types mismatch (broken by 239e679
)
* Updated deluge/tests/google.ico
* Remove empty line in torrentmanager.py
This commit is contained in:
parent
0a12d1507e
commit
da1c07ff99
|
@ -335,7 +335,6 @@ class TorrentManager(component.Component):
|
||||||
log.error("Unable to add magnet, invalid magnet info: %s", magnet)
|
log.error("Unable to add magnet, invalid magnet info: %s", magnet)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
# Check for existing torrent in session.
|
# Check for existing torrent in session.
|
||||||
if torrent_id in self.get_torrent_list():
|
if torrent_id in self.get_torrent_list():
|
||||||
log.warning("Unable to add torrent (%s), already in session", torrent_id)
|
log.warning("Unable to add torrent (%s), already in session", torrent_id)
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
|
@ -29,17 +29,27 @@ deluge.common.setup_translations()
|
||||||
@pytest.mark.gtkui
|
@pytest.mark.gtkui
|
||||||
class TorrentviewTestCase(BaseTestCase):
|
class TorrentviewTestCase(BaseTestCase):
|
||||||
|
|
||||||
default_column_index = ['filter', 'torrent_id', 'dirty', '#', u'Name', u'Size',
|
default_column_index = ['filter', 'torrent_id', 'dirty', '#',
|
||||||
u'Downloaded', u'Uploaded', u'Remaining', u'Progress',
|
u'Name',
|
||||||
u'Seeds', u'Peers', u'Seeds:Peers', u'Down Speed',
|
u'Size', u'Downloaded', u'Uploaded', u'Remaining',
|
||||||
|
u'Progress',
|
||||||
|
u'Seeds', u'Peers',
|
||||||
|
u'Seeds:Peers', u'Down Speed',
|
||||||
u'Up Speed', u'Down Limit', u'Up Limit', u'ETA', u'Ratio',
|
u'Up Speed', u'Down Limit', u'Up Limit', u'ETA', u'Ratio',
|
||||||
u'Avail', u'Added', u'Completed', u'Complete Seen',
|
u'Avail', u'Added', u'Completed', u'Complete Seen',
|
||||||
u'Tracker', u'Download Folder', u'Owner', u'Shared']
|
u'Tracker', u'Download Folder', u'Owner', u'Shared']
|
||||||
default_liststore_columns = [bool, str, bool, int, str, str, TYPE_UINT64,
|
default_liststore_columns = [bool, str, bool, int,
|
||||||
TYPE_UINT64, TYPE_UINT64, TYPE_UINT64,
|
str, str, # Name
|
||||||
float, str, int, int, int, int, float, float, float,
|
TYPE_UINT64, TYPE_UINT64, TYPE_UINT64, TYPE_UINT64,
|
||||||
float, float, int, float, float, float, float,
|
float, str, # Progress
|
||||||
float, str, str, str, str, bool]
|
int, int, int, int, # Seeds, Peers
|
||||||
|
float, float, float, float, float,
|
||||||
|
int, # ETA
|
||||||
|
float, float,
|
||||||
|
int, int, int,
|
||||||
|
str, str, # Tracker
|
||||||
|
str, str,
|
||||||
|
bool] # shared
|
||||||
|
|
||||||
def set_up(self):
|
def set_up(self):
|
||||||
if libs_available is False:
|
if libs_available is False:
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -84,7 +84,7 @@ whitelist_externals =
|
||||||
isort
|
isort
|
||||||
commands =
|
commands =
|
||||||
isort --version
|
isort --version
|
||||||
python -c "import subprocess, sys; output = subprocess.check_output('isort --diff --recursive deluge docs packaging *.py', shell=True); print output; sys.exit(len(output) != 0)"
|
python -c "import subprocess, sys; output = subprocess.check_output('isort -q --diff --recursive deluge docs packaging *.py', shell=True); print output; sys.exit(len(output) != 0)"
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
setenv = {[testenv]setenv}
|
setenv = {[testenv]setenv}
|
||||||
|
|
Loading…
Reference in New Issue