Commit e4214c36 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Adopt the tests as well

parent 34dc0447
Pipeline #14495 canceled with stages
in 1 minute and 14 seconds
...@@ -33,11 +33,10 @@ def test_frames(): ...@@ -33,11 +33,10 @@ def test_frames():
protocol = 'experiment_1' protocol = 'experiment_1'
db.protocol = protocol db.protocol = protocol
db.replace_directories(os.path.expanduser('~/.bob_bio_databases.txt')) db.replace_directories(os.path.expanduser('~/.bob_bio_databases.txt'))
if db.original_directory == '[UVAD_DIRECTORY]': if db.original_directory is None:
raise nose.SkipTest( raise nose.SkipTest(
"Please update '[UVAD_DIRECTORY]' in your " "Please configure bob.db.uvad (refer to package documentation) to "
"'~/.bob_bio_databases.txt' to point to the directory where the " "point to the directory where the database's raw data are. This "
"database's raw data are. This way we can test more features of " "way we can test more features of the database interface.")
"the database interface.")
padfile = db.all_files(('train', 'dev'))[0][0] padfile = db.all_files(('train', 'dev'))[0][0]
assert db.number_of_frames(padfile) == 270, db.number_of_frames(padfile) assert db.number_of_frames(padfile) == 270, db.number_of_frames(padfile)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment