From 497362145a0849f4d31146de37eb76aa22ffb57d Mon Sep 17 00:00:00 2001
From: Tiago Freitas Pereira <tiagofrepereira@gmail.com>
Date: Mon, 22 Aug 2016 10:29:01 +0200
Subject: [PATCH] Removed tests with FRGC

---
 bob/bio/face/test/test_databases.py | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/bob/bio/face/test/test_databases.py b/bob/bio/face/test/test_databases.py
index fcc36657..c271a759 100644
--- a/bob/bio/face/test/test_databases.py
+++ b/bob/bio/face/test/test_databases.py
@@ -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')
-- 
GitLab