Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.pad.base
Commits
bdc63b37
Commit
bdc63b37
authored
Apr 02, 2020
by
André Anjos
💬
Browse files
Merge branch 'issue-33' into 'master'
Configure tests Closes
#33
See merge request
!71
parents
7b23eb1c
53905628
Pipeline
#38675
passed with stages
in 14 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/base/test/test.py
View file @
bdc63b37
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment