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
a260437b
Commit
a260437b
authored
6 years ago
by
Guillaume HEUSCH
Browse files
Options
Downloads
Plain Diff
Merge branch '27-fix-casia-surf-tests' into 'master'
Resolve "fix CASIA-SURF tests" Closes
#27
See merge request
!91
parents
840349c5
74819f16
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!91
Resolve "fix CASIA-SURF tests"
Pipeline
#29327
passed
5 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/pad/face/test/test_databases.py
+7
-5
7 additions, 5 deletions
bob/pad/face/test/test_databases.py
with
7 additions
and
5 deletions
bob/pad/face/test/test_databases.py
+
7
−
5
View file @
a260437b
...
@@ -210,11 +210,13 @@ def test_casiasurf():
...
@@ -210,11 +210,13 @@ def test_casiasurf():
preferred_package
=
'
bob.pad.face
'
,
preferred_package
=
'
bob.pad.face
'
,
package_prefix
=
'
bob.pad.
'
)
package_prefix
=
'
bob.pad.
'
)
try
:
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
=
[
'
train
'
],
purposes
=
'
attack
'
))
==
20324
assert
len
(
casiasurf
.
objects
(
groups
=
[
'
dev
'
],
purposes
=
'
real
'
))
==
0
assert
len
(
casiasurf
.
objects
(
groups
=
(
'
dev
'
,),
purposes
=
(
'
real
'
,)))
==
2994
assert
len
(
casiasurf
.
objects
(
groups
=
[
'
dev
'
],
purposes
=
'
attack
'
))
==
9608
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
:
except
IOError
as
e
:
raise
SkipTest
(
raise
SkipTest
(
"
The database could not be queried; probably the db.sql3 file is missing. Here is the error:
'
%s
'"
"
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():
...
@@ -351,4 +353,4 @@ def test_casiasurf():
# except IOError as e:
# except IOError as e:
# raise SkipTest(
# raise SkipTest(
# "The database could not be queried; probably the db.sql3 file is missing. Here is the error: '%s'"
# "The database could not be queried; probably the db.sql3 file is missing. Here is the error: '%s'"
# % e)
# % e)
\ No newline at end of file
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