Commit c49d1e1d authored by Olegs NIKISINS's avatar Olegs NIKISINS
Browse files

Fixed the unit test connecting it with low level db interface]

parent 80e3d370
Pipeline #13929 passed with stages
in 14 minutes and 17 seconds
......@@ -53,24 +53,24 @@ def test_mobio():
raise SkipTest(
"The database could not be queried; probably the db.sql3 file is missing. Here is the error: '%s'" % e)
class YoutubeFile(object):
def __init__(self, client_id, path, id):
self.client_id = client_id
self.path = path = id
def test_youtube_load_method():
Test the load method of the YoutubeBioFile class.
f = YoutubeFile(1, "", 1)
database ='youtube', 'database', preferred_package='')
f = database.all_files()[0]
youtube_bio_file = YoutubeBioFile(f)
test_file = pkg_resources.resource_filename('', 'test/data/sand_face/image_2.png')
test_file = pkg_resources.resource_filename('', 'test/data/Aaron_Eckhart/0/image_1.jpg')
directory = os.path.split(test_file)[0]
directory = os.path.join(directory, os.pardir, os.pardir)
frame_container = youtube_bio_file.load(directory=directory, extension=".jpg")
assert (len(frame_container)==2)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment