otrs-somconnexio 0.6.0__py2.py3-none-any.whl → 0.6.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- otrs_somconnexio/otrs_models/switchboard_data.py +2 -0
- otrs_somconnexio/otrs_models/switchboard_dynamic_fields.py +5 -0
- {otrs_somconnexio-0.6.0.dist-info → otrs_somconnexio-0.6.1.dist-info}/METADATA +1 -1
- {otrs_somconnexio-0.6.0.dist-info → otrs_somconnexio-0.6.1.dist-info}/RECORD +9 -9
- tests/integration/test_ticket_factory.py +1 -0
- tests/otrs_models/test_switchboard_data.py +1 -0
- tests/otrs_models/test_switchboard_dynamic_fields.py +7 -0
- {otrs_somconnexio-0.6.0.dist-info → otrs_somconnexio-0.6.1.dist-info}/WHEEL +0 -0
- {otrs_somconnexio-0.6.0.dist-info → otrs_somconnexio-0.6.1.dist-info}/top_level.txt +0 -0
|
@@ -14,6 +14,7 @@ class SwitchboardData:
|
|
|
14
14
|
landline,
|
|
15
15
|
landline_2,
|
|
16
16
|
icc,
|
|
17
|
+
has_sim,
|
|
17
18
|
extension,
|
|
18
19
|
agent_name,
|
|
19
20
|
agent_email,
|
|
@@ -38,6 +39,7 @@ class SwitchboardData:
|
|
|
38
39
|
self.landline = landline
|
|
39
40
|
self.landline_2 = landline_2
|
|
40
41
|
self.icc = icc
|
|
42
|
+
self.has_sim = has_sim
|
|
41
43
|
self.extension = extension
|
|
42
44
|
self.agent_name = agent_name
|
|
43
45
|
self.agent_email = agent_email
|
|
@@ -10,6 +10,7 @@ class SwitchboardDynamicFields(ProvisionDynamicFields):
|
|
|
10
10
|
self._landline(),
|
|
11
11
|
self._landline_2(),
|
|
12
12
|
self._icc(),
|
|
13
|
+
self._sim_received(),
|
|
13
14
|
self._extension(),
|
|
14
15
|
self._agent_name(),
|
|
15
16
|
self._agent_email(),
|
|
@@ -35,6 +36,10 @@ class SwitchboardDynamicFields(ProvisionDynamicFields):
|
|
|
35
36
|
def _icc(self):
|
|
36
37
|
return DynamicField(name="ICCSC", value=self.service_data.icc)
|
|
37
38
|
|
|
39
|
+
def _sim_received(self):
|
|
40
|
+
sim_recieved = "1" if self.service_data.has_sim else "0"
|
|
41
|
+
return DynamicField("SIMrebuda", sim_recieved)
|
|
42
|
+
|
|
38
43
|
def _extension(self):
|
|
39
44
|
return DynamicField(name="extensio", value=self.service_data.extension)
|
|
40
45
|
|
|
@@ -26,8 +26,8 @@ otrs_somconnexio/otrs_models/router_4G_data.py,sha256=EQIVxVstFswmEcOHzzV1ZyDYaa
|
|
|
26
26
|
otrs_somconnexio/otrs_models/router_4G_dynamic_fields.py,sha256=NVrfwD2Mj1TTzOC8NYna1XQYXEN6ffAfovlP9VAIHh4,403
|
|
27
27
|
otrs_somconnexio/otrs_models/router_4G_ticket.py,sha256=xxXoqlf95KDQEcKrdU6I7Oda0hZqY-alaBTu0ZZfcX8,883
|
|
28
28
|
otrs_somconnexio/otrs_models/service.py,sha256=EwxTSe6hPS33KbbPGNYzofhEhB4O4d71P9KkpOEjakA,2121
|
|
29
|
-
otrs_somconnexio/otrs_models/switchboard_data.py,sha256=
|
|
30
|
-
otrs_somconnexio/otrs_models/switchboard_dynamic_fields.py,sha256=
|
|
29
|
+
otrs_somconnexio/otrs_models/switchboard_data.py,sha256=7aFvhrFTjxXH0rT1TK2EI02Jgb1m92Efs-WGsvJM8Uk,1530
|
|
30
|
+
otrs_somconnexio/otrs_models/switchboard_dynamic_fields.py,sha256=cc1-niTz38YofTF-1uUDSnu8FDSB-0gY1uFbTP38erA,2281
|
|
31
31
|
otrs_somconnexio/otrs_models/switchboard_ticket.py,sha256=jWkXS2WKBdcx-vgZKU8w_iez4bsl6s9nAtNfALxio-E,860
|
|
32
32
|
otrs_somconnexio/otrs_models/telecom_company.py,sha256=yh8wIE7-AjWESdFsE479WWZ-3uFz_ljUBKF8GK44oow,3077
|
|
33
33
|
otrs_somconnexio/otrs_models/ticket_factory.py,sha256=6rjIlyBlFH6G4o1tSUhEe8XgM6LMNjxWGdoCMGQGPxc,1891
|
|
@@ -109,7 +109,7 @@ tests/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
109
109
|
tests/data/otrs_raw_responses.py,sha256=hrd6ubWHpm61Epdrpgjr2uLniKj9AFioQ4xnDdNSKzw,1380
|
|
110
110
|
tests/integration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
111
111
|
tests/integration/test_change_customer_language.py,sha256=m3hp56hP49ugSvaN7Ic5dRA4NAs3Nk4AkxWz0oQ_kmw,1245
|
|
112
|
-
tests/integration/test_ticket_factory.py,sha256=
|
|
112
|
+
tests/integration/test_ticket_factory.py,sha256=fmAExstOba0GVip9P78IKBZzGKD29ky-b0Tbr75uZ34,13714
|
|
113
113
|
tests/integration/test_update_ticket_with_coverage_data.py,sha256=19XaaitAaj-mkSpSRFWML47bDfcmuQwuF_r1NVE_eZw,2919
|
|
114
114
|
tests/otrs_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
115
115
|
tests/otrs_models/common_helper.py,sha256=WAd7aenHTfHvxjZMlwFfr32ajaF285Y75eifMjrAQeA,251
|
|
@@ -132,8 +132,8 @@ tests/otrs_models/test_router_4G_data.py,sha256=3zKZzWd21j8q4oXFG-Pl1Ugtkp4J0_RZ
|
|
|
132
132
|
tests/otrs_models/test_router_4G_dynamic_fields.py,sha256=EEZHfAxQ8bPTrotGuyxcLxkO9DrEzJd5a1VvF5FIBow,20975
|
|
133
133
|
tests/otrs_models/test_router_4G_ticket.py,sha256=BMdnhAdnmvYfjyxvRN0dcCyS1hMFESV8EgAsCdHbFAo,4496
|
|
134
134
|
tests/otrs_models/test_service.py,sha256=fLFyJ5wE8jszrD9sZlSOebjioR8dv8z2SeGZVcA3r5U,6833
|
|
135
|
-
tests/otrs_models/test_switchboard_data.py,sha256=
|
|
136
|
-
tests/otrs_models/test_switchboard_dynamic_fields.py,sha256
|
|
135
|
+
tests/otrs_models/test_switchboard_data.py,sha256=1DZq9EyB2Ym-v4WdMfScPejqGerczT6Flc0IfDX4M2M,1170
|
|
136
|
+
tests/otrs_models/test_switchboard_dynamic_fields.py,sha256=ctptSKUANXNvFwAITEuYubD2nHcszpy5XZ4itlh9cmo,4363
|
|
137
137
|
tests/otrs_models/test_telecom_company.py,sha256=nC4uBleU2Lr3qHr5VDo-6kbcTVwKgguC85TcbhTOn1c,1450
|
|
138
138
|
tests/otrs_models/test_ticket_factory.py,sha256=BJ32OcK2XgO43pkKIdTK4xOZNi7JZBllUdb022AHKsc,2371
|
|
139
139
|
tests/otrs_models/test_vf_provisioning_article.py,sha256=Yj8vtaowhxP12K_-FMcJNW-5re3yyCCfGLRHCPYgrVA,897
|
|
@@ -183,7 +183,7 @@ tests/services/test_update_ticket_with_provider_info.py,sha256=cZUg-hNV4BoMwafbp
|
|
|
183
183
|
tests/user_management_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
184
184
|
tests/user_management_client/test_client.py,sha256=088q9H1yf8Hii7zUF17KULqOO-JCxJLsR7vQ8lGHiqg,4410
|
|
185
185
|
tests/user_management_client/test_user_management_response.py,sha256=HCCG7i2f6-ytrRpTzYZHODKCdW-X5GJn-BMVegd5FXg,1539
|
|
186
|
-
otrs_somconnexio-0.6.
|
|
187
|
-
otrs_somconnexio-0.6.
|
|
188
|
-
otrs_somconnexio-0.6.
|
|
189
|
-
otrs_somconnexio-0.6.
|
|
186
|
+
otrs_somconnexio-0.6.1.dist-info/METADATA,sha256=XxYdg71wAsANVOB-VfGSGtUAQLVusy4OYPxXRNzDQl0,3458
|
|
187
|
+
otrs_somconnexio-0.6.1.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
|
|
188
|
+
otrs_somconnexio-0.6.1.dist-info/top_level.txt,sha256=gvMaHGNwusWpSIy-PVyb0CKDIA4-4fXmEVER_2a-OnE,23
|
|
189
|
+
otrs_somconnexio-0.6.1.dist-info/RECORD,,
|
|
@@ -32,6 +32,7 @@ class SwitchboardDynamicFieldsTestCase(unittest.TestCase):
|
|
|
32
32
|
landline=faker.phone_number(),
|
|
33
33
|
landline_2=faker.phone_number(),
|
|
34
34
|
icc=faker.bban(),
|
|
35
|
+
has_sim=faker.boolean(),
|
|
35
36
|
extension=faker.phone_number(),
|
|
36
37
|
agent_name=faker.name(),
|
|
37
38
|
agent_email=faker.email(),
|
|
@@ -98,6 +99,12 @@ class SwitchboardDynamicFieldsTestCase(unittest.TestCase):
|
|
|
98
99
|
self.service_data.icc,
|
|
99
100
|
)
|
|
100
101
|
|
|
102
|
+
def test_has_sim_field(self):
|
|
103
|
+
self.assertEqual(
|
|
104
|
+
self.dynamic_fields_dct["SIMrebuda"],
|
|
105
|
+
"1" if self.service_data.has_sim else "0",
|
|
106
|
+
)
|
|
107
|
+
|
|
101
108
|
def test_agent_name_field(self):
|
|
102
109
|
self.assertEqual(
|
|
103
110
|
self.dynamic_fields_dct["nomAgentCV"],
|
|
File without changes
|
|
File without changes
|