Skip to content
Snippets Groups Projects
Commit 54be3074 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Merge branch '94-the-new-way-of-using-a-single-configuration-file-is-not-tested-yet' into 'master'

Resolve "The new way of using a single configuration file is not tested yet"

Closes #94

See merge request !100
parents bc4d0e37 c4c770d0
No related branches found
No related tags found
1 merge request!100Resolve "The new way of using a single configuration file is not tested yet"
Pipeline #
from .database import database
from .preprocessor import preprocessor
from .extractor import extractor
from .algorithm import algorithm
from bob.bio.base.test.dummy.database import database
from bob.bio.base.test.dummy.preprocessor import preprocessor
from bob.bio.base.test.dummy.extractor import extractor
from bob.bio.base.test.dummy.algorithm import algorithm
zt_norm = True
verbose = 1
sub_directory = "test_dummy"
......@@ -61,7 +61,19 @@ def _verify(parameters, test_dir, sub_dir, ref_modifier="", score_modifier=('sco
shutil.rmtree(test_dir)
def test_verify_config():
def test_verify_single_config():
test_dir = tempfile.mkdtemp(prefix='bobtest_')
# define dummy parameters
parameters = [
os.path.join(dummy_dir, 'config.py'),
'--temp-directory', test_dir,
'--result-directory', test_dir
]
_verify(parameters, test_dir, 'test_dummy')
def test_verify_multiple_config():
test_dir = tempfile.mkdtemp(prefix='bobtest_')
# define dummy parameters
parameters = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment