Skip to content
Snippets Groups Projects
Commit de6231d8 authored by Pavel KORSHUNOV's avatar Pavel KORSHUNOV
Browse files

Merge branch 'master' into 'config-support'

# Conflicts:
#   bob/pad/base/test/dummy/database.py
#   bob/pad/base/test/dummy/database_sql.py
parents b28bffe9 ee0abff6
No related branches found
No related tags found
1 merge request!13Support for configuration files
Pipeline #
......@@ -29,6 +29,7 @@ dummy_data = {'train_real': 1.0, 'train_attack': 2.0,
class TestFile(PadFile):
def __init__(self, path, id):
attack_type = None
if "attack" in path:
......@@ -57,6 +58,7 @@ class TestFile(PadFile):
path = self.make_path(directory or '', extension or '')
return dummy_data[os.path.basename(path)]
def dumplist(args):
"""Dumps lists of files based on your criteria"""
......@@ -76,6 +78,7 @@ def dumplist(args):
class Interface(BaseInterface):
def name(self):
return dummy_name
......@@ -170,6 +173,7 @@ class TestDatabase(PadDatabase):
# does not implement the given access protocol
return False
def get_all_data(self):
return self.all_files()
......@@ -196,4 +200,4 @@ class TestDatabase(PadDatabase):
return None
database = TestDatabase()
database = TestDatabase()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment