-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel.py
More file actions
48 lines (40 loc) · 957 Bytes
/
model.py
File metadata and controls
48 lines (40 loc) · 957 Bytes
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
42
43
44
45
46
47
48
class Device(object):
device = ""
build = ""
version = ""
pipeline = ""
orientation = ""
lang = ""
duration = ""
start_date = ""
commiter = ""
device_meta = ""
tests = []
def __init__(self, device, build, version, pipeline, orientation, lang, duration, start_date, commiter, device_meta, tests):
self.device = device
self.build = build
self.version = version
self.pipeline = pipeline
self.orientation = orientation
self.lang = lang
self.duration = duration
self.start_date = start_date
self.commiter = commiter
self.device_meta = device_meta
self.tests = tests
class Tests(object):
passed = []
failed = []
def __init__(self, passed, failed):
self.passed = passed
self.failed = failed
class Test(object):
name = ""
uid = 0
duration = ""
fail_reason = ""
def __init__(self, name, uid, duration, fail_reason):
self.name = name
self.uid = uid
self.duration = duration
self.fail_reason = fail_reason