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

Tried to work on unittests

parent 8a13f3f8
No related branches found
No related tags found
No related merge requests found
...@@ -7,14 +7,20 @@ from MonoMultiViewClassifiers import ExecClassif ...@@ -7,14 +7,20 @@ from MonoMultiViewClassifiers import ExecClassif
class Test_initBenchmark(unittest.TestCase): class Test_initBenchmark(unittest.TestCase):
def test_benchmark_wanted(self): def test_benchmark_wanted(self):
benchmark_output = ExecClassif.initBenchmark(self.args) # benchmark_output = ExecClassif.initBenchmark(self.args)
self.assertEqual(1,1) self.assertEqual(1,1)
class Test_initKWARGS(unittest.TestCase):
def test_initKWARGSFunc_no_monoview(self): def test_initKWARGSFunc_no_monoview(self):
benchmark = {"Monoview":{}, "Multiview":{}} benchmark = {"Monoview":{}, "Multiview":{}}
args = ExecClassif.initKWARGSFunc({}, benchmark) args = ExecClassif.initKWARGSFunc({}, benchmark)
self.assertEqual(args, {}) self.assertEqual(args, {})
class Test_initMonoviewArguments(unittest.TestCase):
def test_initMonoviewArguments_no_monoview(self): def test_initMonoviewArguments_no_monoview(self):
benchmark = {"Monoview":{}, "Multiview":{}} benchmark = {"Monoview":{}, "Multiview":{}}
arguments = ExecClassif.initMonoviewArguments(benchmark, {}, [], [], None, 0, {}) arguments = ExecClassif.initMonoviewArguments(benchmark, {}, [], [], None, 0, {})
...@@ -24,6 +30,8 @@ class Test_initBenchmark(unittest.TestCase): ...@@ -24,6 +30,8 @@ class Test_initBenchmark(unittest.TestCase):
benchmark = {"Monoview":{}, "Multiview":{}} benchmark = {"Monoview":{}, "Multiview":{}}
arguments = ExecClassif.initMonoviewArguments(benchmark, {}, [], [], None, 0, {}) arguments = ExecClassif.initMonoviewArguments(benchmark, {}, [], [], None, 0, {})
class Essai(unittest.TestCase):
def setUp(self): def setUp(self):
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
description='This file is used to benchmark the scores fo multiple classification algorithm on multiview data.', description='This file is used to benchmark the scores fo multiple classification algorithm on multiview data.',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment