From 926c76f355f2264fd34c50785f056a0af6920f3b Mon Sep 17 00:00:00 2001
From: Olegs NIKISINS <onikisins@italix03.idiap.ch>
Date: Wed, 10 May 2017 11:40:10 +0200
Subject: [PATCH] Added the test for HLDI of Replay DB

---
 bob/pad/face/test/test_databases.py | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 bob/pad/face/test/test_databases.py

diff --git a/bob/pad/face/test/test_databases.py b/bob/pad/face/test/test_databases.py
new file mode 100644
index 00000000..23de4dbe
--- /dev/null
+++ b/bob/pad/face/test/test_databases.py
@@ -0,0 +1,21 @@
+#!/usr/bin/env python
+# vim: set fileencoding=utf-8 :
+# Thu May 24 10:41:42 CEST 2012
+
+from nose.plugins.skip import SkipTest
+
+import bob.bio.base
+from bob.bio.base.test.utils import db_available
+from bob.bio.base.test.test_database_implementations import check_database
+
+
+@db_available('replay')
+def test_replay():
+    module = bob.bio.base.load_resource('replay', 'config',
+        preferred_package='bob.pad.face')
+    try:
+        check_database(module.database, protocol=module.protocol,
+            groups=('train', 'dev', 'eval'))
+    except IOError as e:
+        raise SkipTest(
+            "The database could not be queried; probably the db.sql3 file is missing. Here is the error: '%s'" % e)
-- 
GitLab