Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.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.bio.face
Commits
63423a85
Commit
63423a85
authored
9 years ago
by
Manuel Günther
Browse files
Options
Downloads
Patches
Plain Diff
Fixed
#1
by skipping database tests when database is not available
parent
cbc599fd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/face/test/test_databases.py
+11
-1
11 additions, 1 deletion
bob/bio/face/test/test_databases.py
with
11 additions
and
1 deletion
bob/bio/face/test/test_databases.py
+
11
−
1
View file @
63423a85
...
...
@@ -22,6 +22,7 @@ import os
from
nose.plugins.skip
import
SkipTest
import
bob.bio.base
from
bob.bio.base.test.utils
import
db_available
def
_check_database
(
database
,
groups
=
(
'
dev
'
,),
protocol
=
None
,
training_depends
=
False
,
models_depend
=
False
):
assert
isinstance
(
database
,
bob
.
bio
.
base
.
database
.
DatabaseBob
)
...
...
@@ -66,7 +67,7 @@ def _check_annotations(database):
assert
'
leye
'
in
annotations
@db_available
(
'
arface
'
)
def
test_arface
():
database
=
bob
.
bio
.
base
.
load_resource
(
'
arface
'
,
'
database
'
,
preferred_extension
=
'
bob.bio.face
'
)
try
:
...
...
@@ -80,6 +81,7 @@ def test_atnt():
_check_database
(
bob
.
bio
.
base
.
load_resource
(
'
atnt
'
,
'
database
'
,
preferred_extension
=
'
bob.bio.face
'
))
@db_available
(
'
banca
'
)
def
test_banca
():
database
=
bob
.
bio
.
base
.
load_resource
(
'
banca
'
,
'
database
'
,
preferred_extension
=
'
bob.bio.face
'
)
try
:
...
...
@@ -89,6 +91,7 @@ def test_banca():
raise
SkipTest
(
"
The database could not be queried; probably the db.sql3 file is missing. Here is the error:
'
%s
'"
%
e
)
@db_available
(
'
caspeal
'
)
def
test_caspeal
():
database
=
bob
.
bio
.
base
.
load_resource
(
'
caspeal
'
,
'
database
'
,
preferred_extension
=
'
bob.bio.face
'
)
try
:
...
...
@@ -99,6 +102,7 @@ def test_caspeal():
raise
SkipTest
(
"
The database could not queried; probably the db.sql3 file is missing. Here is the error:
'
%s
'"
%
e
)
@db_available
(
'
frgc
'
)
def
test_frgc
():
import
xml.sax
database
=
bob
.
bio
.
base
.
load_resource
(
'
frgc
'
,
'
database
'
,
preferred_extension
=
'
bob.bio.face
'
)
...
...
@@ -110,6 +114,7 @@ def test_frgc():
raise
SkipTest
(
"
The database could not be opened, probably the original directory is wrong. Here is the error:
'
%s
'"
%
e
)
@db_available
(
'
gbu
'
)
def
test_gbu
():
database
=
bob
.
bio
.
base
.
load_resource
(
'
gbu
'
,
'
database
'
,
preferred_extension
=
'
bob.bio.face
'
)
try
:
...
...
@@ -121,6 +126,7 @@ def test_gbu():
raise
SkipTest
(
"
The database could not queried; probably the db.sql3 file is missing. Here is the error:
'
%s
'"
%
e
)
@db_available
(
'
lfw
'
)
def
test_lfw
():
database
=
bob
.
bio
.
base
.
load_resource
(
'
lfw-restricted
'
,
'
database
'
,
preferred_extension
=
'
bob.bio.face
'
)
try
:
...
...
@@ -132,6 +138,7 @@ def test_lfw():
raise
SkipTest
(
"
The database could not queried; probably the db.sql3 file is missing. Here is the error:
'
%s
'"
%
e
)
@db_available
(
'
mobio
'
)
def
test_mobio
():
database
=
bob
.
bio
.
base
.
load_resource
(
'
mobio-image
'
,
'
database
'
,
preferred_extension
=
'
bob.bio.face
'
)
try
:
...
...
@@ -148,6 +155,7 @@ def test_mobio():
raise
SkipTest
(
"
The annotations could not be queried; probably the annotation files are missing. Here is the error:
'
%s
'"
%
e
)
@db_available
(
'
multipie
'
)
def
test_multipie
():
database
=
bob
.
bio
.
base
.
load_resource
(
'
multipie
'
,
'
database
'
,
preferred_extension
=
'
bob.bio.face
'
)
try
:
...
...
@@ -164,6 +172,7 @@ def test_multipie():
raise
SkipTest
(
"
The annotations could not be queried; probably the annotation files are missing. Here is the error:
'
%s
'"
%
e
)
@db_available
(
'
scface
'
)
def
test_scface
():
database
=
bob
.
bio
.
base
.
load_resource
(
'
scface
'
,
'
database
'
,
preferred_extension
=
'
bob.bio.face
'
)
try
:
...
...
@@ -173,6 +182,7 @@ def test_scface():
raise
SkipTest
(
"
The database could not be queried; probably the db.sql3 file is missing. Here is the error:
'
%s
'"
%
e
)
@db_available
(
'
xm2vts
'
)
def
test_xm2vts
():
database
=
bob
.
bio
.
base
.
load_resource
(
'
xm2vts
'
,
'
database
'
,
preferred_extension
=
'
bob.bio.face
'
)
try
:
...
...
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