Commit f5dc8715 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Fixing tests for the bob.nightlies

parent 6e62e1e0
......@@ -36,7 +36,7 @@ class Database(bob.db.verification.utils.Database):
and for the data itself inside the database.
"""
def __init__(self, original_directory = None, annotations_directory="./bob/db/ijba/data"):
def __init__(self, original_directory = None, annotations_directory=None):
# call base class constructor
bob.db.verification.utils.Database.__init__(self, original_directory=original_directory, original_extension=None)
......@@ -44,6 +44,10 @@ class Database(bob.db.verification.utils.Database):
#Creating our data structure to deal with the db files
self.memory_db = {}
self.templates = {} #Dictionary with the templates in a unique list
if(annotations_directory is None):#Get the default location
annotations_directory = bob.db.ijba.driver.Interface().files()[0]
self.annotations_directory = annotations_directory
......
......@@ -51,7 +51,7 @@ def test01_search_clients():
def test02_search_objects():
# Checks the objects
db = bob.db.ijba.Database("./bob/db/ijba/data/")
db = bob.db.ijba.Database()
# number of world files for the protocols (cf. the number of lines in the training file lists)
......@@ -72,7 +72,7 @@ def test02_search_objects():
def test03_comparison_objects():
# Checks the objects
db = bob.db.ijba.Database("./bob/db/ijba/data/")
db = bob.db.ijba.Database()
# number of world files for the protocols (cf. the number of lines in the training file lists)
world_files = [16910, 16354, 17287, 16548, 17040, 17644, 17584, 16367, 17421 ,16910]
......
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