pytestomatio 2.8.2.dev21__tar.gz → 2.8.2.dev22__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.dev21/pytestomatio.egg-info → pytestomatio-2.8.2.dev22}/PKG-INFO +1 -1
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pyproject.toml +1 -1
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/connect/connector.py +13 -5
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22/pytestomatio.egg-info}/PKG-INFO +1 -1
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/LICENSE +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/README.md +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/__init__.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/connect/__init__.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/connect/s3_connector.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/decor/__init__.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/decor/decorator_updater.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/decor/default.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/decor/pep8.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/main.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/testing/__init__.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/testing/code_collector.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/testing/testItem.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/testomatio/__init__.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/testomatio/testRunConfig.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/testomatio/testomat_item.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/testomatio/testomatio.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/utils/__init__.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/utils/helper.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/utils/parser_setup.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/utils/validations.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio.egg-info/SOURCES.txt +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio.egg-info/dependency_links.txt +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio.egg-info/entry_points.txt +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio.egg-info/requires.txt +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio.egg-info/top_level.txt +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/setup.cfg +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/tests/sub/__init__.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/tests/sub/sub_mob/__init__.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/tests/sub/sub_mob/sub_sub_class_test.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/tests/sub/sub_mob/sub_sub_test.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/tests/sub/test_class_sub.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/tests/sub/test_sub.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/tests/test_class_root.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/tests/test_decorators.py +0 -0
- {pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/tests/test_root.py +0 -0
|
@@ -17,21 +17,29 @@ class Connector:
|
|
|
17
17
|
self.api_key = api_key
|
|
18
18
|
|
|
19
19
|
@property
|
|
20
|
-
def
|
|
21
|
-
"""
|
|
20
|
+
def session(self):
|
|
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
|
+
self._apply_proxy_settings()
|
|
25
|
+
return self._session
|
|
26
|
+
|
|
27
|
+
@session.setter
|
|
28
|
+
def session(self, value):
|
|
29
|
+
"""Allow setting a custom session, while still applying proxy settings."""
|
|
30
|
+
self._session = value
|
|
31
|
+
self._apply_proxy_settings()
|
|
24
32
|
|
|
33
|
+
def _apply_proxy_settings(self):
|
|
34
|
+
"""Apply proxy settings based on environment variables."""
|
|
25
35
|
http_proxy = getenv("HTTP_PROXY")
|
|
26
36
|
if http_proxy:
|
|
27
37
|
self._session.proxies = {"http": http_proxy, "https": http_proxy}
|
|
28
38
|
self._session.verify = False
|
|
29
39
|
else:
|
|
30
|
-
self._session.proxies.clear()
|
|
40
|
+
self._session.proxies.clear() # Clear proxies if HTTP_PROXY is not set
|
|
31
41
|
self._session.verify = True
|
|
32
42
|
|
|
33
|
-
return self._session
|
|
34
|
-
|
|
35
43
|
def load_tests(
|
|
36
44
|
self,
|
|
37
45
|
tests: list[TestItem],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/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.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/testing/code_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio/testomatio/testRunConfig.py
RENAMED
|
File without changes
|
{pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/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.dev21 → pytestomatio-2.8.2.dev22}/pytestomatio.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{pytestomatio-2.8.2.dev21 → pytestomatio-2.8.2.dev22}/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.dev21 → pytestomatio-2.8.2.dev22}/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
|