summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-03-12 00:38:07 +0100
committerhut <hut@lavabit.com>2010-03-12 00:46:48 +0100
commit94c5d83e6752cf6506c78c9454c08b9f3df9371c (patch)
tree23bb25c0c94607b605da6ad6795ed0b7bd9f7708 /test
parentfff320285cfd4844547afac4056b788b2db3a2ee (diff)
downloadranger-94c5d83e6752cf6506c78c9454c08b9f3df9371c.tar.gz
misc changes, make install
Diffstat (limited to 'test')
-rw-r--r--test/__init__.py2
-rw-r--r--test/tc_colorscheme.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/test/__init__.py b/test/__init__.py
index 29796ac1..dc6dfc0d 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -18,6 +18,8 @@ import os, sys
 __all__ = [ x[0:x.index('.')] \
 		for x in os.listdir(os.path.dirname(__file__)) \
 		if x.startswith('tc_') ]
+import ranger
+ranger.arg = ranger.parse_arguments()
 
 def init():
 	sys.path.append(os.path.abspath(os.path.join(sys.path[0], '..')))
diff --git a/test/tc_colorscheme.py b/test/tc_colorscheme.py
index c09b9fa9..dbaac1f9 100644
--- a/test/tc_colorscheme.py
+++ b/test/tc_colorscheme.py
@@ -24,6 +24,8 @@ from ranger.gui.context import CONTEXT_KEYS
 class Test(TestCase):
 	def setUp(self):
 		import random
+		import curses
+		curses.COLORS = 88
 		schemes = []
 		for key, mod in vars(ranger.colorschemes).items():
 			if type(mod) == type(random):