Skip to content

Commit

Permalink
Added preferred_package option to bob.bio.base.load_resource calls in…
Browse files Browse the repository at this point in the history
… tests
  • Loading branch information
siebenkopf committed Jan 29, 2016
1 parent 6d836fb commit 4a785e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bob/bio/video/test/test_databases.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ 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)
except IOError as e:
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)
Expand Down

0 comments on commit 4a785e9

Please sign in to comment.