From e26a3dc0e7e017d6324966bed76ebab4d80bdaeb Mon Sep 17 00:00:00 2001 From: bendikro Date: Sun, 30 Oct 2016 12:11:36 +0100 Subject: [PATCH] [Tests] Move test torrents into data subdir --- deluge/tests/common.py | 3 --- deluge/tests/{ => data}/deluge.png | Bin .../tests/{ => data}/dir_with_6_files.torrent | Bin deluge/tests/{ => data}/google.ico | Bin deluge/tests/{ => data}/test.torrent | 0 .../{ => data}/test_torrent.file.torrent | 0 .../ubuntu-9.04-desktop-i386.iso.torrent | Bin deluge/tests/{ => data}/ubuntu.png | Bin .../{ => data}/unicode_filenames.torrent | Bin deluge/tests/openbt.png | Bin 673 -> 0 bytes deluge/tests/publicbt.ico | Bin 2550 -> 0 bytes deluge/tests/test_core.py | 22 +++++++++--------- deluge/tests/test_torrent.py | 8 +++---- deluge/tests/test_torrentmanager.py | 2 +- deluge/tests/test_tracker_icons.py | 11 ++++----- deluge/tests/test_ui_common.py | 4 ++-- deluge/tests/test_web_api.py | 6 ++--- 17 files changed, 25 insertions(+), 31 deletions(-) rename deluge/tests/{ => data}/deluge.png (100%) rename deluge/tests/{ => data}/dir_with_6_files.torrent (100%) rename deluge/tests/{ => data}/google.ico (100%) rename deluge/tests/{ => data}/test.torrent (100%) rename deluge/tests/{ => data}/test_torrent.file.torrent (100%) rename deluge/tests/{ => data}/ubuntu-9.04-desktop-i386.iso.torrent (100%) rename deluge/tests/{ => data}/ubuntu.png (100%) rename deluge/tests/{ => data}/unicode_filenames.torrent (100%) delete mode 100644 deluge/tests/openbt.png delete mode 100644 deluge/tests/publicbt.ico diff --git a/deluge/tests/common.py b/deluge/tests/common.py index 9f3fd1790..d751b85c6 100644 --- a/deluge/tests/common.py +++ b/deluge/tests/common.py @@ -75,9 +75,6 @@ def add_watchdog(deferred, timeout=0.05, message=None): return watchdog -def rpath(*args): - return os.path.join(os.path.dirname(__file__), *args) - # Initialize gettext lang.setup_translations() diff --git a/deluge/tests/deluge.png b/deluge/tests/data/deluge.png similarity index 100% rename from deluge/tests/deluge.png rename to deluge/tests/data/deluge.png diff --git a/deluge/tests/dir_with_6_files.torrent b/deluge/tests/data/dir_with_6_files.torrent similarity index 100% rename from deluge/tests/dir_with_6_files.torrent rename to deluge/tests/data/dir_with_6_files.torrent diff --git a/deluge/tests/google.ico b/deluge/tests/data/google.ico similarity index 100% rename from deluge/tests/google.ico rename to deluge/tests/data/google.ico diff --git a/deluge/tests/test.torrent b/deluge/tests/data/test.torrent similarity index 100% rename from deluge/tests/test.torrent rename to deluge/tests/data/test.torrent diff --git a/deluge/tests/test_torrent.file.torrent b/deluge/tests/data/test_torrent.file.torrent similarity index 100% rename from deluge/tests/test_torrent.file.torrent rename to deluge/tests/data/test_torrent.file.torrent diff --git a/deluge/tests/ubuntu-9.04-desktop-i386.iso.torrent b/deluge/tests/data/ubuntu-9.04-desktop-i386.iso.torrent similarity index 100% rename from deluge/tests/ubuntu-9.04-desktop-i386.iso.torrent rename to deluge/tests/data/ubuntu-9.04-desktop-i386.iso.torrent diff --git a/deluge/tests/ubuntu.png b/deluge/tests/data/ubuntu.png similarity index 100% rename from deluge/tests/ubuntu.png rename to deluge/tests/data/ubuntu.png diff --git a/deluge/tests/unicode_filenames.torrent b/deluge/tests/data/unicode_filenames.torrent similarity index 100% rename from deluge/tests/unicode_filenames.torrent rename to deluge/tests/data/unicode_filenames.torrent diff --git a/deluge/tests/openbt.png b/deluge/tests/openbt.png deleted file mode 100644 index 270d617aec02a1f51da388ad978afe47022a11d6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 673 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!s7BuiW)N`mv#O3D+9QW+dm z@{>{(JaZG%Q-e|yQz{EjrrIztFgbg=IEGZ*niK4sEgUFf`#yD&-?Eb&nx5So9W@@g z-Qj+8=>LO73KJK_MhG07${p)+fWRfcb5R{$ zlQHkl+?Z%0a)dko!QJwEmBr_Gh8un|&So(BvHwPxf=gdcbbBuIMv0bHOdl;Q?0Hm~ ze(9YkWXNZj=)<&Xl}5p?bw!_8gqHg!2K?^)_dB#=tGqy!)Pu(gG5lAuocx|nu&8D; znxB4$o#)#1Sd&STm+Ssb`gZ7dYS8br&R4%wBzHRPxMZ0Xzu)m)n(ZOW^Kk*rr)Olm znEdQq&ctu+Un^Q)WwpIJ$rIT>uV>DC5&b~t^D_;W_08&iW3n@Te{Vw+clgTEr?))z z{a@;J?1cpZ8>}ma%7BxN^a{yo8_eOl+M~*h;_MxzK&> zE!Uf;?ar284^=8m$78D}i`{VSK{ zP3<3+{L@Dgl9`*cOi!^(>|bNgaw?9~XtryQ^_j@ZQ&l%MXq}$$G2+6$vyW^heJ+kk z>oV1H=;?1)nPmH6?E*jb#pgs7Z}#2|k_@`c@UC=XNOM$e<3ZyGUu9%=ZST0ZJG3Nz zZ=zD}ZS@Qz5B^{GHaRtZ;}0_M`S;1`;LpZ{6-#n{s!G%xmdKI;Vst01?kM6aWAK diff --git a/deluge/tests/publicbt.ico b/deluge/tests/publicbt.ico deleted file mode 100644 index 54b10a810eaa022bb1b33383efa7682f390487ea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2550 zcmZQzU}Ruo5D);-3Je)63=C=v3{XA?Lk24YLmvwRg9b>9fq_AR0iuq9Mj-PhD?{c@ z*1efGS^uNs{M!N;Vo)_8^z(x2>;I)MTmHZQ{q#QweEj|V|K%@R|4)75k8ajp zkO5Hh{^#A|{eS4g%>SSNy!yZPRoVZx2c{tH|9c-f{$Ks7`2WX0Fa96>F#mu4Eq=H; z$oluboACeJ-w*$*?ka-iLFR!BD8DNU=2zU6`~T(7oBs#j&j9m5_QLe{JhK1){qM*B zPk&tgfBoy8|An`O!R~?S2ZaO356^#I|Nr&RyZ;j&yMfJs=|A>y!Tt9!a)6kI*bN|nJ8V2(I|M}13{~!7= z3oO3*O~e1}n;hu+L3sf#2C`@W`zinLd^`I8^PkuM?|nZ3j)T?*CU7+%yFvK|YCq2W z2UUlz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