Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.video
Commits
4a785e92
Commit
4a785e92
authored
Jan 29, 2016
by
Manuel Günther
Browse files
Added preferred_package option to bob.bio.base.load_resource calls in tests
parent
6d836fbe
Changes
1
Show whitespace changes
Inline
Side-by-side
bob/bio/video/test/test_databases.py
View file @
4a785e92
...
...
@@ -54,7 +54,7 @@ def _check_database_zt(database, groups = ('dev', 'eval'), protocol = None, trai
def
test_mobio
():
database
=
bob
.
bio
.
base
.
load_resource
(
'mobio-video'
,
'database'
)
database
=
bob
.
bio
.
base
.
load_resource
(
'mobio-video'
,
'database'
,
preferred_package
=
'bob.bio.video'
)
try
:
_check_database_zt
(
database
,
models_depend
=
True
)
_check_database_zt
(
database
,
protocol
=
'female'
,
models_depend
=
True
)
...
...
@@ -62,7 +62,7 @@ def test_mobio():
raise
SkipTest
(
"The database could not be queried; probably the db.sql3 file is missing. Here is the import error: '%s'"
%
e
)
def
test_youtube
():
database
=
bob
.
bio
.
base
.
load_resource
(
'youtube'
,
'database'
)
database
=
bob
.
bio
.
base
.
load_resource
(
'youtube'
,
'database'
,
preferred_package
=
'bob.bio.video'
)
try
:
_check_database
(
database
,
training_depends
=
True
,
models_depend
=
True
)
_check_database
(
database
,
protocol
=
'fold7'
,
training_depends
=
True
,
models_depend
=
True
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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