forked from MarketSquare/robotframework-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.py
More file actions
31 lines (23 loc) · 1.01 KB
/
template.py
File metadata and controls
31 lines (23 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from pathlib import Path
# Do not use relative imports! This will not work on runtime!
class DatabaseProcessor:
def __init__(self, database_path: Path):
# This function should handle the connection to the database
# And if required the creation of the tables
# The use of the databse_path variable might not be required but you should still keep it as an argument!
pass
def close_database(self):
# This function is called to close the connection to the database
pass
def insert_output_data(self, output_data: dict, tags: list):
# This function inserts the data of an output file into the database
pass
def get_data(self):
# This function gets all the data in the database
pass
def list_runs(self):
# This function gets all available runs and prints them to the console
pass
def remove_runs(self, remove_runs):
# This function removes all provided runs and all their corresponding data
pass