-
Notifications
You must be signed in to change notification settings - Fork 5
/
database.py
41 lines (21 loc) · 1015 Bytes
/
database.py
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
32
33
34
35
36
37
38
39
40
41
from sqlalchemy import Table
from lib.database_conn import Session, Base
class Projects(Base):
__table__ = Table('projects', Base.metadata, autoload=True)
class TestAutomationStatus(Base):
__table__ = Table('test_automation_status', Base.metadata, autoload=True)
class TestAutomationCoverage(Base):
__table__ = Table('test_automation_coverage', Base.metadata, autoload=True)
class TestSuites(Base):
__table__ = Table('test_suites', Base.metadata, autoload=True)
class TestSubSuites(Base):
__table__ = Table('test_sub_suites', Base.metadata, autoload=True)
class ReportTestCaseCoverage(Base):
__table__ = Table('report_test_case_coverage', Base.metadata, autoload=True) # noqa
# class ReportTestRunCounts(Base):
# __table__ = Table('report_test_run_counts', Base.metadata, autoload=True)
class ReportGithubIssues(Base):
__table__ = Table('report_github_issues', Base.metadata, autoload=True)
class Database:
def __init__(self):
self.session = Session()