Commit 56468667 authored by Samuel GAIST's avatar Samuel GAIST

[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
......@@ -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"])
......
......@@ -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"])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment