Commit 49736214 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Removed tests with FRGC

parent 5809aba0
......@@ -33,12 +33,14 @@ def _check_database(database, groups=('dev',), protocol=None, training_depends=F
database.replace_directories(os.path.join(os.environ['HOME'], '.bob_bio_databases.txt'))
if protocol: database.protocol = protocol
if protocol is None: protocol = database.protocol
assert len(database.all_files()) > 0
assert len(database.training_files('train_extractor')) > 0
assert len(database.arrange_by_client(database.training_files('train_enroller'))) > 0
for group in groups:
model_ids = database.model_ids(group)
model_ids = database.model_ids(group, protocol=protocol)
assert len(model_ids) > 0
assert database.client_id_from_model_id(model_ids[0]) is not None
assert len(database.enroll_files(model_ids[0], group)) > 0
......@@ -106,17 +108,17 @@ def test_caspeal():
"The database could not queried; probably the db.sql3 file is missing. Here is the error: '%s'" % e)
@db_available('frgc')
def test_frgc():
import xml.sax
database = bob.bio.base.load_resource('frgc', 'database', preferred_package='bob.bio.face')
try:
_check_database(database, models_depend=True)
_check_database(database, protocol='2.0.2', models_depend=True)
_check_annotations(database)
except xml.sax.SAXException as e:
raise SkipTest(
"The database could not be opened, probably the original directory is wrong. Here is the error: '%s'" % e)
#@db_available('frgc')
#def test_frgc():
# import xml.sax
# database = bob.bio.base.load_resource('frgc', 'database', preferred_package='bob.bio.face')
# try:
# _check_database(database, models_depend=True)
# _check_database(database, protocol='2.0.2', models_depend=True)
# _check_annotations(database)
# except xml.sax.SAXException as e:
# raise SkipTest(
# "The database could not be opened, probably the original directory is wrong. Here is the error: '%s'" % e)
@db_available('gbu')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment