summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-11 23:39:45 +0100
committerhut <hut@lavabit.com>2009-12-11 23:39:45 +0100
commit649a69cb87af38f4bf1848085d49d1193f6e01ab (patch)
tree1bd56b79daf5af576f38a447b0264bce2a880f52 /test
parent084a0743189363c8c03aae1fe6766ae92a4469a3 (diff)
downloadranger-649a69cb87af38f4bf1848085d49d1193f6e01ab.tar.gz
clean ups
Diffstat (limited to 'test')
-rw-r--r--test/__init__.py3
-rw-r--r--test/tc_directory.py5
-rw-r--r--test/tc_history.py5
3 files changed, 5 insertions, 8 deletions
diff --git a/test/__init__.py b/test/__init__.py
index 4f1c736a..500d3383 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -3,3 +3,6 @@ import os, sys
 __all__ = [ x[0:x.index('.')] \
 		for x in os.listdir(os.path.dirname(__file__)) \
 		if x.startswith('tc_') ]
+
+def init():
+	sys.path.append(os.path.abspath(os.path.join(sys.path[0], '..')))
diff --git a/test/tc_directory.py b/test/tc_directory.py
index 434d282f..cb8e747e 100644
--- a/test/tc_directory.py
+++ b/test/tc_directory.py
@@ -1,7 +1,4 @@
-if __name__ == '__main__':
-	from os.path import abspath, join
-	import sys
-	sys.path.append(abspath(join(sys.path[0], '..')))
+if __name__ == '__main__': from __init__ import init; init()
 
 from ranger import fsobject
 from ranger.fsobject.file import File
diff --git a/test/tc_history.py b/test/tc_history.py
index e78af0aa..ad340992 100644
--- a/test/tc_history.py
+++ b/test/tc_history.py
@@ -1,7 +1,4 @@
-if __name__ == '__main__':
-	from os.path import abspath, join
-	import sys
-	sys.path.append(abspath(join(sys.path[0], '..')))
+if __name__ == '__main__': from __init__ import init; init()
 
 from ranger.container import History
 from unittest import TestCase, main
8e013e1ba103f3c9b4606be369f49673a2711'>7f98e013 ^
bdcc0ddb ^





7f98e013 ^
bdcc0ddb ^

8e75437a ^
7f98e013 ^


bdcc0ddb ^
















7f98e013 ^
bdcc0ddb ^


7f98e013 ^
bdcc0ddb ^





7f98e013 ^
bdcc0ddb ^

7f98e013 ^



bdcc0ddb ^








fca59a31 ^





























1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150