Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.pad.face
Commits
e2cbc5fe
Commit
e2cbc5fe
authored
Dec 04, 2019
by
Guillaume HEUSCH
Browse files
[database] added test for BRSU
parent
9ea5856e
Pipeline
#35696
passed with stage
in 19 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/face/test/test_databases.py
View file @
e2cbc5fe
...
...
@@ -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
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment