Skip to content
Snippets Groups Projects
Commit fccd28b1 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Solving Issue #38 - BioDatabase method training_files causes tests to fail

parent e7722c0c
Branches
Tags
1 merge request!39Solving Issue #38 - BioDatabase method training_files causes tests to fail
Pipeline #
......@@ -12,7 +12,7 @@ import os
from bob.bio.base.database import BioDatabase, ZTBioDatabase
def check_database(database, groups=('dev',), protocol=None, training_depends=False, models_depend=False):
def check_database(database, groups=('dev',), protocol=None, training_depends=False, models_depend=False, skip_train=False):
assert isinstance(database, BioDatabase)
# load the directories
......@@ -23,6 +23,7 @@ def check_database(database, groups=('dev',), protocol=None, training_depends=Fa
if protocol is None: protocol = database.protocol
assert len(database.all_files()) > 0
if not skip_train:
assert len(database.training_files('train_extractor')) > 0
assert len(database.arrange_by_client(database.training_files('train_enroller'))) > 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment