Skip to content
Snippets Groups Projects
Commit d1a77fd9 authored by Baptiste Bauvin's avatar Baptiste Bauvin
Browse files

modified the path to remove caps

parent d5582d23
No related branches found
No related tags found
No related merge requests found
......@@ -124,7 +124,7 @@ class Test_execBenchmark(unittest.TestCase):
@classmethod
def tearDownClass(cls):
cls.Dataset.close()
path = "multiview_platform/Tests/tmp_tests/"
path = "multiview_platform/tests/tmp_tests/"
for file_name in os.listdir(path):
os.remove(os.path.join(path, file_name))
os.rmdir(path)
......@@ -164,7 +164,7 @@ class Test_execOneBenchmark(unittest.TestCase):
@classmethod
def setUp(cls):
os.mkdir("multiview_platform/Tests/tmp_tests")
os.mkdir("multiview_platform/tests/tmp_tests")
cls.args = {
"Base": {"name": "chicken_is_heaven", "type": "type",
"pathf": "pathF"},
......@@ -210,7 +210,7 @@ class Test_execOneBenchmark(unittest.TestCase):
@classmethod
def tearDown(cls):
path = "multiview_platform/Tests/tmp_tests/"
path = "multiview_platform/tests/tmp_tests/"
for file_name in os.listdir(path):
dir_path = os.path.join(path, file_name)
if os.path.isdir(dir_path):
......@@ -226,7 +226,7 @@ class Test_execOneBenchmark_multicore(unittest.TestCase):
@classmethod
def setUpClass(cls):
os.mkdir("multiview_platform/Tests/tmp_tests")
os.mkdir("multiview_platform/tests/tmp_tests")
cls.args = {
"Base": {"name": "chicken_is_heaven", "type": "type",
"pathf": "pathF"},
......@@ -260,7 +260,7 @@ class Test_execOneBenchmark_multicore(unittest.TestCase):
@classmethod
def tearDown(cls):
path = "multiview_platform/Tests/tmp_tests/"
path = "multiview_platform/tests/tmp_tests/"
for file_name in os.listdir(path):
dir_path = os.path.join(path, file_name)
if os.path.isdir(dir_path):
......
......@@ -8,15 +8,15 @@ from multiview_platform.mono_multi_view_classifiers.utils import configuration
class Test_get_the_args(unittest.TestCase):
def setUp(self):
self.path_to_config_file = "multiview_platform/Tests/tmp_tests/config_temp.ini"
os.mkdir("multiview_platform/Tests/tmp_tests")
self.path_to_config_file = "multiview_platform/tests/tmp_tests/config_temp.ini"
os.mkdir("multiview_platform/tests/tmp_tests")
config_file = open(self.path_to_config_file, "w")
config_file.write("[Base]\nfirst_arg = int ; 10\nsecond_arg = list_float ; 12.5 1e-06\n[Classification]\nthird_arg = bool ; yes")
config_file.close()
def tearDown(self):
os.remove("multiview_platform/Tests/tmp_tests/config_temp.ini")
os.rmdir("multiview_platform/Tests/tmp_tests")
os.remove("multiview_platform/tests/tmp_tests/config_temp.ini")
os.rmdir("multiview_platform/tests/tmp_tests")
def test_file_loading(self):
config_dict = configuration.get_the_args(self.path_to_config_file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment