Skip to content
Snippets Groups Projects
Commit bdc63b37 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Merge branch 'issue-33' into 'master'

Configure tests

Closes #33

See merge request !71
parents 7b23eb1c 53905628
No related branches found
No related tags found
1 merge request!71Configure tests
Pipeline #38675 passed
......@@ -25,6 +25,10 @@ Base = declarative_base()
class TestFile (Base, bob.pad.base.database.PadFile):
# tell test runners (such as nose and pytest) that this class is not a test class
__test__ = False
__tablename__ = "file"
id = Column(Integer, primary_key=True)
client_id = Column(Integer, unique=True)
......@@ -49,6 +53,10 @@ def create_database():
class TestDatabase (bob.pad.base.database.PadDatabase, bob.db.base.SQLiteDatabase):
# tell test runners (such as nose and pytest) that this class is not a test class
__test__ = False
def __init__(self):
bob.pad.base.database.PadDatabase.__init__(self, 'pad_test', original_directory="original/directory", original_extension=".orig")
bob.db.base.SQLiteDatabase.__init__(self, dbfile, TestFile)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment