pytestomatio 2.8.2.dev26__tar.gz → 2.8.2.dev27__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.dev26/pytestomatio.egg-info → pytestomatio-2.8.2.dev27}/PKG-INFO +1 -1
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pyproject.toml +1 -1
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/connect/connector.py +9 -11
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27/pytestomatio.egg-info}/PKG-INFO +1 -1
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/LICENSE +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/README.md +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/__init__.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/connect/__init__.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/connect/s3_connector.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/decor/__init__.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/decor/decorator_updater.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/decor/default.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/decor/pep8.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/main.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/testing/__init__.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/testing/code_collector.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/testing/testItem.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/testomatio/__init__.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/testomatio/testRunConfig.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/testomatio/testomat_item.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/testomatio/testomatio.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/utils/__init__.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/utils/helper.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/utils/parser_setup.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/utils/validations.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio.egg-info/SOURCES.txt +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio.egg-info/dependency_links.txt +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio.egg-info/entry_points.txt +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio.egg-info/requires.txt +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio.egg-info/top_level.txt +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/setup.cfg +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/tests/sub/__init__.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/tests/sub/sub_mob/__init__.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/tests/sub/sub_mob/sub_sub_class_test.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/tests/sub/sub_mob/sub_sub_test.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/tests/sub/test_class_sub.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/tests/sub/test_sub.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/tests/test_class_root.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/tests/test_decorators.py +0 -0
- {pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/tests/test_root.py +0 -0
|
@@ -19,8 +19,6 @@ class Connector:
|
|
|
19
19
|
@property
|
|
20
20
|
def session(self):
|
|
21
21
|
"""Get the session, creating it and applying proxy settings if necessary."""
|
|
22
|
-
if self._session is None:
|
|
23
|
-
self._session = requests.Session()
|
|
24
22
|
self._apply_proxy_settings()
|
|
25
23
|
return self._session
|
|
26
24
|
|
|
@@ -37,14 +35,14 @@ class Connector:
|
|
|
37
35
|
if http_proxy:
|
|
38
36
|
self._session.proxies = {"http": http_proxy, "https": http_proxy}
|
|
39
37
|
self._session.verify = False
|
|
40
|
-
log.
|
|
38
|
+
log.info(f"Proxy settings applied: {self._session.proxies}")
|
|
41
39
|
|
|
42
40
|
if not self._test_proxy_connection():
|
|
43
41
|
log.info("Proxy is unavailable. Falling back to a direct connection.")
|
|
44
42
|
self._session.proxies.clear()
|
|
45
43
|
self._session.verify = True
|
|
46
44
|
else:
|
|
47
|
-
log.
|
|
45
|
+
log.info("No proxy settings found. Using a direct connection.")
|
|
48
46
|
self._session.proxies.clear()
|
|
49
47
|
self._session.verify = True
|
|
50
48
|
|
|
@@ -89,7 +87,7 @@ class Connector:
|
|
|
89
87
|
})
|
|
90
88
|
|
|
91
89
|
try:
|
|
92
|
-
response = self.
|
|
90
|
+
response = self.session.post(f'{self.base_url}/api/load?api_key={self.api_key}', json=request)
|
|
93
91
|
except ConnectionError as ce:
|
|
94
92
|
log.error(f'Failed to connect to {self.base_url}: {ce}')
|
|
95
93
|
return
|
|
@@ -107,7 +105,7 @@ class Connector:
|
|
|
107
105
|
|
|
108
106
|
def get_tests(self, test_metadata: list[TestItem]) -> dict:
|
|
109
107
|
# with safe_request('Failed to get test ids from testomat.io'):
|
|
110
|
-
response = self.
|
|
108
|
+
response = self.session.get(f'{self.base_url}/api/test_data?api_key={self.api_key}')
|
|
111
109
|
return response.json()
|
|
112
110
|
|
|
113
111
|
def create_test_run(self, title: str, group_title, env: str, label: str, shared_run: bool, parallel, ci_build_url: str) -> dict | None:
|
|
@@ -123,7 +121,7 @@ class Connector:
|
|
|
123
121
|
}
|
|
124
122
|
filtered_request = {k: v for k, v in request.items() if v is not None}
|
|
125
123
|
try:
|
|
126
|
-
response = self.
|
|
124
|
+
response = self.session.post(f'{self.base_url}/api/reporter', json=filtered_request)
|
|
127
125
|
except ConnectionError as ce:
|
|
128
126
|
log.error(f'Failed to connect to {self.base_url}: {ce}')
|
|
129
127
|
return
|
|
@@ -153,7 +151,7 @@ class Connector:
|
|
|
153
151
|
filtered_request = {k: v for k, v in request.items() if v is not None}
|
|
154
152
|
|
|
155
153
|
try:
|
|
156
|
-
response = self.
|
|
154
|
+
response = self.session.put(f'{self.base_url}/api/reporter/{id}', json=filtered_request)
|
|
157
155
|
except ConnectionError as ce:
|
|
158
156
|
log.error(f'Failed to connect to {self.base_url}: {ce}')
|
|
159
157
|
return
|
|
@@ -198,7 +196,7 @@ class Connector:
|
|
|
198
196
|
}
|
|
199
197
|
filtered_request = {k: v for k, v in request.items() if v is not None}
|
|
200
198
|
try:
|
|
201
|
-
response = self.
|
|
199
|
+
response = self.session.post(f'{self.base_url}/api/reporter/{run_id}/testrun?api_key={self.api_key}',
|
|
202
200
|
json=filtered_request)
|
|
203
201
|
except ConnectionError as ce:
|
|
204
202
|
log.error(f'Failed to connect to {self.base_url}: {ce}')
|
|
@@ -216,7 +214,7 @@ class Connector:
|
|
|
216
214
|
def finish_test_run(self, run_id: str, is_final=False) -> None:
|
|
217
215
|
status_event = 'finish_parallel' if is_final else 'finish'
|
|
218
216
|
try:
|
|
219
|
-
self.
|
|
217
|
+
self.session.put(f'{self.base_url}/api/reporter/{run_id}?api_key={self.api_key}',
|
|
220
218
|
json={"status_event": status_event})
|
|
221
219
|
except ConnectionError as ce:
|
|
222
220
|
log.error(f'Failed to connect to {self.base_url}: {ce}')
|
|
@@ -229,4 +227,4 @@ class Connector:
|
|
|
229
227
|
return
|
|
230
228
|
|
|
231
229
|
def disconnect(self):
|
|
232
|
-
self.
|
|
230
|
+
self.session.close()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/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.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/testing/code_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio/testomatio/testRunConfig.py
RENAMED
|
File without changes
|
{pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/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.dev26 → pytestomatio-2.8.2.dev27}/pytestomatio.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{pytestomatio-2.8.2.dev26 → pytestomatio-2.8.2.dev27}/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.dev26 → pytestomatio-2.8.2.dev27}/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
|