Calum Lind
83262afda1
Flake8 codebase
...
Fixes error E265 and E714 that have been added to newest version of pep8
2014-09-22 12:46:18 +01:00
Calum Lind
142e96b246
Autopep8 E265
2014-09-22 12:46:17 +01:00
Calum Lind
30a0f3c9ed
Flake8 pass of entire codebase
...
* Use the inline '# NOQA' to supress N802 lower-case warnings
2014-09-19 19:10:14 +01:00
Calum Lind
b8ab6e4083
[Tests] Replace module import with sys.modules
2014-09-19 13:40:39 +01:00
Calum Lind
5167e93d12
Flake8 core and common files
...
* Added N802 to flake8 ignore as certain inherited funcs cannot be changed
to lowercase and this unresolved warning hides other errors/warnings.
* Include new header
2014-09-03 23:48:34 +01:00
Calum Lind
b5dcfc6f9e
Sort/prettify imports with isort
2014-09-03 18:27:32 +01:00
Calum Lind
3a53f4002a
[Python-Modernize] libmodernize.fixes.fix_print
...
* Replaces print with print()
2014-09-03 17:22:38 +01:00
Calum Lind
1e6c811768
[Python-Modernize] lib2to3.fixes.fix_except
...
* Use 'ex' instead of 'e' to conform with pylint
* Minimal Flake8 on some files
2014-09-03 17:22:38 +01:00
Calum Lind
682acc11ec
[Tests] Update ubuntu icon
2014-09-03 17:22:21 +01:00
Calum Lind
4afd1fa91d
Remove old sha module import code
2014-07-05 19:43:07 +01:00
Calum Lind
d8a00cf517
[Tests] Update ubuntu favicon
2014-07-02 19:42:57 +01:00
bendikro
6c74e2d19c
[Tests] Fixed tests so that if the tcp port is used, other ports will be tested
2014-03-06 19:08:35 +00:00
Calum Lind
a9ed6fe46a
refactor torrent.set_options
2014-02-15 09:26:08 +00:00
bendikro
8ecc0e11a7
Fix for #1885 and add simple caching to the data funcs for the torrentview
...
* Fix for #1885 (Wrong tracker icon in torrent list)
* Moved the data functions from torrentview/listview into
torrentview_data_funcs.py
* Added caching the current value of the cell renderer for the data functions
* Reordered if-tests in deluge.common.fsize
* Disable data funcs when column is hidden
2013-12-23 16:21:24 +00:00
bendikro
feaeee0379
Removed LoopingCall from torrent.py
...
Having a LoopingCall for each torrent is expencive with a lot of torrents.
The LoopingCall in torrent.py has been moved to torrentmanager.py
which runs through all the torrents and calls cleanup_prev_status.
2013-11-21 10:48:55 +00:00
bendikro
19234d6565
Added some tests for rpcserver
2013-05-26 23:09:02 +01:00
bendikro
b76cdc2227
Fix 2247: AttributeError in deluge.error.DaemonRunningError
...
* Removed all the properties in error.py and added more tests
* Handle failure in client.py handling RPC_ERROR (From older daemons)
2013-05-26 15:25:39 +01:00
Calum Lind
e2e09200c4
Fix gettext setup in test_common and log in test_transfer so tests run standalone
...
Add extra tests to test_config
Run the test files through flake8 to tidy up code
2013-05-22 01:06:32 +01:00
Calum Lind
235b7348ae
Fix test_client test
2013-05-16 12:54:33 +01:00
Calum Lind
1a0ca9edbe
Alter return value to -1 for invalid freespace path
...
Updated GTK and Web UI to display error if value is -1
Added set_markup method to gtk statusbaritem class
2013-05-13 19:07:49 +01:00
Calum Lind
7424cf2834
Fix error in previous commit (b6a3161) and added test
2013-05-09 22:29:04 +01:00
Calum Lind
b6a3161280
Add a get method to config so a default value can be returned
2013-05-09 19:13:20 +01:00
bendikro
5503f90473
Fix #2285 : Speed optimizations for sessionproxy
2013-05-09 12:10:02 +01:00
bendikro
a60dc95fed
Fixed tests: sessionproxy/torrent/tracker_icon
...
* Fixed sessionproxy tests
* Fixed test_torrent messing up component for other tests
* Updated tracker_icon test to use unresized google icon
2013-05-02 01:20:05 +02:00
Calum Lind
607be461e0
Fix and update tests
2013-05-01 05:24:36 +01:00
bendikro
6313ff19b3
Improved the speed of set_prioritize_first_last in torrent.py
...
set_prioritize_first_last is rewritten for better performance, and is now only called when necessary. It should now properly set the priority for the beginning and end of each file in the torrent.
2013-01-02 20:20:25 -05:00
bendikro
cc5ef89139
Fix #2241 : Can't add any torrent files with GUI running
...
This fixes a bug in commit 60f196ff933, adds a test and removes
unneeded ignore when encoding unicode to utf8.
2013-01-01 17:22:00 +00:00
Calum Lind
1a9506f832
move misplaced test to correct dir
2013-01-01 17:11:39 +00:00
Chase Sterling
2a0048afbb
Add unit test for new component dependency stopping code.
2012-12-08 16:26:32 -05:00
Andrew Resch
2f3623d430
Fix component tests
2012-12-08 12:56:58 -08:00
John Garland
129c09c5a7
Don't use deprecated twisted imports ( fixes #2164 )
...
Aliases have been removed in twisted 12.2.0.
2012-09-16 17:19:46 +10:00
John Garland
c8384bf304
Update google.ico so tracker_icons tests pass again
2012-09-16 17:14:47 +10:00
Calum Lind
fcc13f454b
Fix torrent file and folder renaming issues
...
Adds `sanitize_filepath` for use before passing to libtorrent rename_file
2011-07-13 22:44:13 +01:00
Calum Lind
13528fe7f8
Fix httpdownloader Tests
2011-07-07 01:22:51 +01:00
Pedro Algarvio
8b6d6e3836
Fix broken SessionProxy tests.
2011-07-05 09:29:12 +01:00
John Garland
37b9277c0e
Update ubuntu tracker icon test
2011-07-05 18:00:06 +10:00
Andrew Resch
5bc63fa910
Change component.deregister to take the object as the parameter, not the name
2011-06-06 14:19:51 -07:00
Pedro Algarvio
df3214168c
Cleaner fix for #1874 , code clean up and reusability.
...
Translations are now setup on `deluge.common`. Where they used to be setup, a call to `setup_translations(setup_pygtk=False)` is now made.
Every call to `pkg_resources.resource_filename()` is now made through `deluge.common.resource_filename` to make sure that we're loading data from the right deluge install.
2011-06-04 18:06:45 +01:00
Pedro Algarvio
0ba0e013b5
Force backwards incompatibility.
...
Force clients prior to 1.4 to fail authentication, this was we might reduce tickets like #1852 .
2011-05-15 22:18:38 +01:00
Pedro Algarvio
f26de83509
Don't run into loops when the auth file does not exist and we're trying to create it.
2011-05-01 04:44:42 +01:00
Pedro Algarvio
f41f6ad46a
Test fixes and #1814 fix.
...
All test were adapted, and some more were added to comply with the new multiuser support in deluge.
Regarding #1814 , host entries in the Connection Manager UI are now migrated from the old format were automatic localhost logins were possible, which no longer is.
2011-04-27 19:32:13 +01:00
Damien Churchill
98a8be7131
avoid having the tests hang due to a failing to connect client!
2011-04-27 13:38:23 +01:00
Damien Churchill
796109649d
fix the client tests albeit in an ultra hacky way
2011-04-21 10:41:00 +01:00
Damien Churchill
d18becc861
fix bug due to vim stripping regex being wrong
2011-04-20 18:37:39 +01:00
Damien Churchill
bcb636dda4
improve the core tests to use a built in webserver
2011-04-20 18:32:55 +01:00
Damien Churchill
f30a2858ce
convert the tests to use a local webserver instead of pinging deluge-torrent.org and damoxc.net
2011-03-08 14:43:09 +00:00
John Garland
32b41fabd6
Handle redirection when adding a torrent by url
2011-03-09 00:44:42 +11:00
John Garland
a0f9689664
Handle partial downloads due to incorrect headers ( fixes #1517 )
2011-03-09 00:40:15 +11:00
Pedro Algarvio
3b00a7de59
Swhiched the old style logging, ie, a single logger for all logging output to several loggers. This brings the ability to tweak the logging levels for each of the loggers, ie, we can have the "deluge" logger be at the ERROR level while having "deluge.core" at the DEBUG level, meaning we will only see log message for all of the deluge loggers above the ERROR level while still having all messages above the DEBUG level for the "deluge.core" logger and it's children. This kind of tweak can be achieved by adding a file named "logging.conf" to deluge's config dir and this is explained on the deluge.log.tweak_logging_levels function.
...
Passing `-r` to the cli's while also passing `-l` will make the logfile rotate when reaching 5Mb in size. Three backups will be kept at all times.
All deluge's code is now using this new style logging along with the git hosted plugins. For other plugins not hosted by deluge, which still imports `LOG` as the logger, a deprecation warning will be shown explaining the required changes needed to use the new style logging. New plugins created by the `create_plugin` script will use the new logging facilities.
2010-12-06 11:20:22 +00:00
Damien Churchill
4197e129fe
change location of httpdownloader as a temporary fix
2010-10-25 00:13:09 +01:00