Commit e2cbc5fe authored by Guillaume HEUSCH's avatar Guillaume HEUSCH

[database] added test for BRSU

parent 9ea5856e
Pipeline #35696 passed with stage
in 19 minutes and 20 seconds
......@@ -147,7 +147,10 @@ def test_maskattack():
# Test the Aggregated database, which doesn't have a package
@db_available('replay')
@db_available('replaymobile')
@db_available('msu_mfsd_mod')
@db_available('mobio')
def test_aggregated_db():
aggregated_db = bob.bio.base.load_resource(
'aggregated-db',
......@@ -229,6 +232,23 @@ def test_casiasurf():
% e)
@db_available('brsu')
def test_brsu():
brsu = bob.bio.base.load_resource(
'brsu',
'database',
preferred_package='bob.pad.face',
package_prefix='bob.pad.')
try:
assert len(brsu.objects()) == 276
assert len(brsu.objects(purposes=('real',))) == 192
assert len(brsu.objects(purposes=('attack',))) == 84
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)
@db_available('casia_fasd')
def test_casia_fasd():
casia_fasd = bob.bio.base.load_resource(
......
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