Skip to content
GitLab
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
a63dc69f
Commit
a63dc69f
authored
Nov 25, 2020
by
Amir MOHAMMADI
Browse files
[tests][youtube_db] skip annotation tests if original_directory is not set
parent
67243900
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/video/test/test_databases.py
View file @
a63dc69f
...
...
@@ -12,9 +12,6 @@ def test_youtube():
database
=
bob
.
bio
.
base
.
load_resource
(
"youtube"
,
"database"
,
preferred_package
=
"bob.bio.video"
)
database
.
database
.
original_directory
=
pkg_resources
.
resource_filename
(
"bob.bio.video"
,
"test/data"
)
try
:
check_database_zt
(
database
,
training_depends
=
True
,
models_depend
=
True
)
except
IOError
as
e
:
...
...
@@ -23,6 +20,8 @@ def test_youtube():
%
e
)
try
:
if
database
.
database
.
original_directory
is
None
:
raise
SkipTest
(
"The annotations cannot be queried as original_directory is None"
)
_check_annotations
(
database
,
limit_files
=
1000
,
topleft
=
True
,
framed
=
True
)
except
IOError
as
e
:
raise
SkipTest
(
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment