-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_event.py
106 lines (93 loc) · 2.94 KB
/
test_event.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# coding: utf-8
"""
Notehub API
The OpenAPI definition for the Notehub.io API.
The version of the OpenAPI document: 1.2.0
Contact: engineering@blues.io
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from notehub_py.models.event import Event
class TestEvent(unittest.TestCase):
"""Event unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Event:
"""Test Event
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Event`
"""
model = Event()
if include_optional:
return Event(
event = '',
session = '',
tls = True,
best_id = '',
device = '',
sn = '',
product = '',
app = '',
received = 1.337,
req = '',
when = 1.337,
file = '',
note = '',
updates = 1.337,
body = None,
payload = '',
best_location_type = '',
best_location_when = 1.337,
best_lat = 1.337,
best_lon = 1.337,
best_location = '',
best_country = '',
best_timezone = '',
where_olc = '',
where_when = 1.337,
where_lat = 1.337,
where_lon = 1.337,
where_location = '',
where_country = '',
where_timezone = '',
tower_when = 1.337,
tower_lat = 1.337,
tower_lon = 1.337,
tower_country = '',
tower_location = '',
tower_timezone = '',
tower_id = '',
tri_when = 1.337,
tri_lat = 1.337,
tri_lon = 1.337,
tri_location = '',
tri_country = '',
tri_timezone = '',
tri_points = 1.337,
moved = 1.337,
orientation = '',
rssi = 1.337,
sinr = 1.337,
rsrp = 1.337,
rsrq = 1.337,
rat = '',
bars = 1.337,
voltage = 1.337,
temp = 1.337,
environment = None
)
else:
return Event(
)
"""
def testEvent(self):
"""Test Event"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()