Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pad.face
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.pad.face
Commits
30b9dc8e
Commit
30b9dc8e
authored
6 years ago
by
Guillaume HEUSCH
Browse files
Options
Downloads
Patches
Plain Diff
[database] added test for casiasurf
parent
ee5e60ae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!77
CASIA-SURF database
Pipeline
#26286
passed
6 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/pad/face/test/test_databases.py
+19
-0
19 additions, 0 deletions
bob/pad/face/test/test_databases.py
with
19 additions
and
0 deletions
bob/pad/face/test/test_databases.py
+
19
−
0
View file @
30b9dc8e
...
...
@@ -200,3 +200,22 @@ def test_aggregated_db():
"
The database could not be queried; probably the db.sql3 file is missing. Here is the error:
'
%s
'"
%
e
)
# Test the casiasurf database
@db_available
(
'
casiasurf
'
)
def
test_casiasurf
():
casiasurf
=
bob
.
bio
.
base
.
load_resource
(
'
casiasurf
'
,
'
database
'
,
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
=
'
attack
'
))
==
20324
assert
len
(
casiasurf
.
objects
(
groups
=
[
'
dev
'
],
purposes
=
'
real
'
))
==
0
assert
len
(
casiasurf
.
objects
(
groups
=
[
'
dev
'
],
purposes
=
'
attack
'
))
==
9608
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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment