aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2010-07-13 00:02:48 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2010-07-13 00:02:48 -0300
commita6c2353a6dfc76b5d5fd5f01fb149d9f6cb0ca11 (patch)
tree93267cb5b490d2c6417da7619ed535df2be3f069
parentadded new options to the config file. started adding logging calls to the sou... (diff)
downloadg-octave-a6c2353a6dfc76b5d5fd5f01fb149d9f6cb0ca11.tar.gz
g-octave-a6c2353a6dfc76b5d5fd5f01fb149d9f6cb0ca11.tar.bz2
g-octave-a6c2353a6dfc76b5d5fd5f01fb149d9f6cb0ca11.zip
fixed tests
-rwxr-xr-xscripts/run_tests.py3
-rw-r--r--tests/test_config.py7
2 files changed, 10 insertions, 0 deletions
diff --git a/scripts/run_tests.py b/scripts/run_tests.py
index f839953..130846d 100755
--- a/scripts/run_tests.py
+++ b/scripts/run_tests.py
@@ -16,6 +16,9 @@ import os
import sys
import unittest
+# disabling the logging
+os.environ['GOCTAVE_LOG_FILE'] = ''
+
root_dir = os.path.realpath(os.path.join(
os.path.dirname(os.path.abspath(__file__)), '..'
))
diff --git a/tests/test_config.py b/tests/test_config.py
index 7134df0..e5cb6fa 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -42,6 +42,13 @@ class TestConfig(unittest.TestCase):
self.assertEqual(self._empty_cfg.overlay, '/usr/local/portage/g-octave')
self.assertEqual(self._empty_cfg.categories, 'main,extra,language')
self.assertEqual(self._empty_cfg.db_mirror, 'http://soc.dev.gentoo.org/~rafaelmartins/g-octave/db/')
+ self.assertEqual(self._empty_cfg.trac_user, '')
+ self.assertEqual(self._empty_cfg.trac_passwd, '')
+ self.assertEqual(self._empty_cfg.pkg_cache, '')
+ self.assertEqual(self._empty_cfg.log_level, '')
+ # the next is empty, because we disabled the logs at scripts/run_tests.py
+ self.assertEqual(self._empty_cfg.log_file, '')
+ self.assertEqual(self._empty_cfg.package_manager, 'portage')
def test_config_attributes(self):
self.assertEqual(self._cfg.db, '/path/to/the/db')