Commit 74819f16 authored by Guillaume HEUSCH's avatar Guillaume HEUSCH

[db] fixed tests for CASIA-SURF db

parent 840349c5
Pipeline #28261 passed with stage
in 19 minutes and 7 seconds
......@@ -210,11 +210,13 @@ def test_casiasurf():
preferred_package='bob.pad.face',
package_prefix='bob.pad.')
try:
assert len(casiasurf.objects(groups=['train', 'dev'], purposes='real')) == 8942
assert len(casiasurf.objects(groups=['train'], purposes='real')) == 8942
assert len(casiasurf.objects(groups=['train'], purposes='attack')) == 20324
assert len(casiasurf.objects(groups=['dev'], purposes='real')) == 0
assert len(casiasurf.objects(groups=['dev'], purposes='attack')) == 9608
assert len(casiasurf.objects(groups=('dev',), purposes=('real',))) == 2994
assert len(casiasurf.objects(groups=('dev',), purposes=('attack',))) == 6614
assert len(casiasurf.objects(groups=('dev',), purposes=('real','attack'))) == 9608
assert len(casiasurf.objects(groups=('eval',), purposes=('attack',))) == 57710
except IOError as e:
raise SkipTest(
"The database could not be queried; probably the db.sql3 file is missing. Here is the error: '%s'"
......@@ -351,4 +353,4 @@ def test_casiasurf():
# 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)
\ No newline at end of file
# % e)
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