aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2010-05-29 00:29:57 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2010-05-29 00:29:57 -0300
commit9f82601795bb7b2151eecdbaa65ec10e2a92d025 (patch)
treec3ec04952d137ce33f7351910a1b17e684049085
parentadded a fake tree of external files to be used by the tests. (diff)
downloadg-octave-9f82601795bb7b2151eecdbaa65ec10e2a92d025.tar.gz
g-octave-9f82601795bb7b2151eecdbaa65ec10e2a92d025.tar.bz2
g-octave-9f82601795bb7b2151eecdbaa65ec10e2a92d025.zip
moved auxiliary files from tests/ to tests/files. fixed modules g_octave.config and g_octave.description to
use the files in the new location
-rw-r--r--tests/files/DESCRIPTION (renamed from tests/DESCRIPTION)0
-rw-r--r--tests/files/g-octave.cfg (renamed from tests/g-octave.cfg)0
-rw-r--r--tests/files/g-octave_empty.cfg (renamed from tests/g-octave_empty.cfg)0
-rw-r--r--tests/test_config.py4
-rw-r--r--tests/test_description.py2
5 files changed, 3 insertions, 3 deletions
diff --git a/tests/DESCRIPTION b/tests/files/DESCRIPTION
index cfc9104..cfc9104 100644
--- a/tests/DESCRIPTION
+++ b/tests/files/DESCRIPTION
diff --git a/tests/g-octave.cfg b/tests/files/g-octave.cfg
index d50b924..d50b924 100644
--- a/tests/g-octave.cfg
+++ b/tests/files/g-octave.cfg
diff --git a/tests/g-octave_empty.cfg b/tests/files/g-octave_empty.cfg
index 15685c3..15685c3 100644
--- a/tests/g-octave_empty.cfg
+++ b/tests/files/g-octave_empty.cfg
diff --git a/tests/test_config.py b/tests/test_config.py
index 7c2cc26..33f50b9 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -25,14 +25,14 @@ class TestConfig(unittest.TestCase):
# object with the config file empty, should use the default values
self._empty_cfg = config.Config(
- config_file = os.path.join(current_dir, 'g-octave_empty.cfg'),
+ config_file = os.path.join(current_dir, 'files', 'g-octave_empty.cfg'),
create_dirs = False,
fetch_phase = True
)
# object with an example config file
self._cfg = config.Config(
- config_file = os.path.join(current_dir, 'g-octave.cfg'),
+ config_file = os.path.join(current_dir, 'files', 'g-octave.cfg'),
create_dirs = False,
fetch_phase = True
)
diff --git a/tests/test_description.py b/tests/test_description.py
index f462b8f..c7042e6 100644
--- a/tests/test_description.py
+++ b/tests/test_description.py
@@ -22,7 +22,7 @@ class TestDescription(unittest.TestCase):
def setUp(self):
self.desc = description.Description(
os.path.join(
- os.path.dirname(os.path.abspath(__file__)), 'DESCRIPTION'
+ os.path.dirname(os.path.abspath(__file__)), 'files', 'DESCRIPTION'
)
)