pytestomatio 2.8.2.dev22__tar.gz → 2.8.2.dev24__tar.gz
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.
- {pytestomatio-2.8.2.dev22/pytestomatio.egg-info → pytestomatio-2.8.2.dev24}/PKG-INFO +1 -1
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pyproject.toml +1 -1
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/connect/connector.py +23 -23
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24/pytestomatio.egg-info}/PKG-INFO +1 -1
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/LICENSE +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/README.md +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/__init__.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/connect/__init__.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/connect/s3_connector.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/decor/__init__.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/decor/decorator_updater.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/decor/default.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/decor/pep8.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/main.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/testing/__init__.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/testing/code_collector.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/testing/testItem.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/testomatio/__init__.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/testomatio/testRunConfig.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/testomatio/testomat_item.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/testomatio/testomatio.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/utils/__init__.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/utils/helper.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/utils/parser_setup.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/utils/validations.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio.egg-info/SOURCES.txt +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio.egg-info/dependency_links.txt +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio.egg-info/entry_points.txt +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio.egg-info/requires.txt +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio.egg-info/top_level.txt +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/setup.cfg +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/tests/sub/__init__.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/tests/sub/sub_mob/__init__.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/tests/sub/sub_mob/sub_sub_class_test.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/tests/sub/sub_mob/sub_sub_test.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/tests/sub/test_class_sub.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/tests/sub/test_sub.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/tests/test_class_root.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/tests/test_decorators.py +0 -0
- {pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/tests/test_root.py +0 -0
|
@@ -21,7 +21,7 @@ class Connector:
|
|
|
21
21
|
"""Get the session, creating it and applying proxy settings if necessary."""
|
|
22
22
|
if self._session is None:
|
|
23
23
|
self._session = requests.Session()
|
|
24
|
-
|
|
24
|
+
self._apply_proxy_settings()
|
|
25
25
|
return self._session
|
|
26
26
|
|
|
27
27
|
@session.setter
|
|
@@ -73,14 +73,14 @@ class Connector:
|
|
|
73
73
|
|
|
74
74
|
try:
|
|
75
75
|
response = self._session.post(f'{self.base_url}/api/load?api_key={self.api_key}', json=request)
|
|
76
|
-
except ConnectionError:
|
|
77
|
-
log.error(f'Failed to connect to {self.base_url}')
|
|
76
|
+
except ConnectionError as ce:
|
|
77
|
+
log.error(f'Failed to connect to {self.base_url}: {ce}')
|
|
78
78
|
return
|
|
79
|
-
except HTTPError:
|
|
80
|
-
log.error(f'
|
|
79
|
+
except HTTPError as he:
|
|
80
|
+
log.error(f'HTTP error occurred while connecting to {self.base_url}: {he}')
|
|
81
81
|
return
|
|
82
82
|
except Exception as e:
|
|
83
|
-
log.error(f'
|
|
83
|
+
log.error(f'An unexpected exception occurred. Please report an issue: {e}')
|
|
84
84
|
return
|
|
85
85
|
|
|
86
86
|
if response.status_code < 400:
|
|
@@ -107,14 +107,14 @@ class Connector:
|
|
|
107
107
|
filtered_request = {k: v for k, v in request.items() if v is not None}
|
|
108
108
|
try:
|
|
109
109
|
response = self._session.post(f'{self.base_url}/api/reporter', json=filtered_request)
|
|
110
|
-
except ConnectionError:
|
|
111
|
-
log.error(f'Failed to connect to {self.base_url}')
|
|
110
|
+
except ConnectionError as ce:
|
|
111
|
+
log.error(f'Failed to connect to {self.base_url}: {ce}')
|
|
112
112
|
return
|
|
113
|
-
except HTTPError:
|
|
114
|
-
log.error(f'
|
|
113
|
+
except HTTPError as he:
|
|
114
|
+
log.error(f'HTTP error occurred while connecting to {self.base_url}: {he}')
|
|
115
115
|
return
|
|
116
116
|
except Exception as e:
|
|
117
|
-
log.error(f'
|
|
117
|
+
log.error(f'An unexpected exception occurred. Please report an issue: {e}')
|
|
118
118
|
return
|
|
119
119
|
|
|
120
120
|
if response.status_code == 200:
|
|
@@ -141,10 +141,10 @@ class Connector:
|
|
|
141
141
|
log.error(f'Failed to connect to {self.base_url}: {ce}')
|
|
142
142
|
return
|
|
143
143
|
except HTTPError as he:
|
|
144
|
-
log.error(f'
|
|
144
|
+
log.error(f'HTTP error occurred while connecting to {self.base_url}: {he}')
|
|
145
145
|
return
|
|
146
146
|
except Exception as e:
|
|
147
|
-
log.error(f'
|
|
147
|
+
log.error(f'An unexpected exception occurred. Please report an issue: {e}')
|
|
148
148
|
return
|
|
149
149
|
|
|
150
150
|
if response.status_code == 200:
|
|
@@ -183,14 +183,14 @@ class Connector:
|
|
|
183
183
|
try:
|
|
184
184
|
response = self._session.post(f'{self.base_url}/api/reporter/{run_id}/testrun?api_key={self.api_key}',
|
|
185
185
|
json=filtered_request)
|
|
186
|
-
except ConnectionError:
|
|
187
|
-
log.error(f'Failed to connect to {self.base_url}')
|
|
186
|
+
except ConnectionError as ce:
|
|
187
|
+
log.error(f'Failed to connect to {self.base_url}: {ce}')
|
|
188
188
|
return
|
|
189
|
-
except HTTPError:
|
|
190
|
-
log.error(f'
|
|
189
|
+
except HTTPError as he:
|
|
190
|
+
log.error(f'HTTP error occurred while connecting to {self.base_url}: {he}')
|
|
191
191
|
return
|
|
192
192
|
except Exception as e:
|
|
193
|
-
log.error(f'
|
|
193
|
+
log.error(f'An unexpected exception occurred. Please report an issue: {e}')
|
|
194
194
|
return
|
|
195
195
|
if response.status_code == 200:
|
|
196
196
|
log.info('Test status updated')
|
|
@@ -201,14 +201,14 @@ class Connector:
|
|
|
201
201
|
try:
|
|
202
202
|
self._session.put(f'{self.base_url}/api/reporter/{run_id}?api_key={self.api_key}',
|
|
203
203
|
json={"status_event": status_event})
|
|
204
|
-
except ConnectionError:
|
|
205
|
-
log.error(f'Failed to connect to {self.base_url}')
|
|
204
|
+
except ConnectionError as ce:
|
|
205
|
+
log.error(f'Failed to connect to {self.base_url}: {ce}')
|
|
206
206
|
return
|
|
207
|
-
except HTTPError:
|
|
208
|
-
log.error(f'
|
|
207
|
+
except HTTPError as he:
|
|
208
|
+
log.error(f'HTTP error occurred while connecting to {self.base_url}: {he}')
|
|
209
209
|
return
|
|
210
210
|
except Exception as e:
|
|
211
|
-
log.error(f'
|
|
211
|
+
log.error(f'An unexpected exception occurred. Please report an issue: {e}')
|
|
212
212
|
return
|
|
213
213
|
|
|
214
214
|
def disconnect(self):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/decor/decorator_updater.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/testing/code_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/testomatio/testRunConfig.py
RENAMED
|
File without changes
|
{pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio/testomatio/testomat_item.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/pytestomatio.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytestomatio-2.8.2.dev22 → pytestomatio-2.8.2.dev24}/tests/sub/sub_mob/sub_sub_class_test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|