Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
56468667
Commit
56468667
authored
Jun 18, 2020
by
Samuel GAIST
Browse files
[test][prefix][databases] Add setup method to some views
This ensure that the setup call is properly done
parent
8dd8df3a
Pipeline
#40552
passed with stage
in 29 minutes and 47 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/core/test/prefix/databases/simple/1.py
View file @
56468667
...
...
@@ -41,6 +41,15 @@ from beat.backend.python.database import View as BaseView
class
View
(
BaseView
):
def
setup
(
self
,
root_folder
,
outputs
,
parameters
,
start_index
=
None
,
end_index
=
None
,
):
"""Initializes the database"""
super
().
setup
(
root_folder
,
outputs
,
parameters
,
start_index
,
end_index
)
return
True
def
index
(
self
,
root_folder
,
parameters
):
Entry
=
namedtuple
(
"Entry"
,
[
"out"
])
...
...
beat/core/test/prefix/databases/simple/2.py
View file @
56468667
...
...
@@ -41,6 +41,15 @@ from beat.backend.python.database import View as BaseView
class
View
(
BaseView
):
def
setup
(
self
,
root_folder
,
outputs
,
parameters
,
start_index
=
None
,
end_index
=
None
,
):
"""Initializes the database"""
super
().
setup
(
root_folder
,
outputs
,
parameters
,
start_index
,
end_index
)
return
True
def
index
(
self
,
root_folder
,
parameters
):
Entry
=
namedtuple
(
"Entry"
,
[
"out"
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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