pytestomatio 2.8.2.dev32__tar.gz → 2.8.2.dev34__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.dev32/pytestomatio.egg-info → pytestomatio-2.8.2.dev34}/PKG-INFO +1 -1
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pyproject.toml +1 -1
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/connect/s3_connector.py +1 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/main.py +6 -2
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/testomatio/testomatio.py +4 -15
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34/pytestomatio.egg-info}/PKG-INFO +1 -1
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/LICENSE +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/README.md +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/__init__.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/connect/__init__.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/connect/connector.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/decor/__init__.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/decor/decorator_updater.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/decor/default.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/decor/pep8.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/testing/__init__.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/testing/code_collector.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/testing/testItem.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/testomatio/__init__.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/testomatio/testRunConfig.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/testomatio/testomat_item.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/utils/__init__.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/utils/helper.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/utils/parser_setup.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/utils/validations.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio.egg-info/SOURCES.txt +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio.egg-info/dependency_links.txt +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio.egg-info/entry_points.txt +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio.egg-info/requires.txt +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio.egg-info/top_level.txt +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/setup.cfg +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/sub/__init__.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/sub/sub_mob/__init__.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/sub/sub_mob/sub_sub_class_test.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/sub/sub_mob/sub_sub_test.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/sub/test_class_sub.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/sub/test_sub.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/test_class_root.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/test_decorators.py +0 -0
- {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/test_root.py +0 -0
|
@@ -15,6 +15,7 @@ def parse_endpoint(endpoint: str = None) -> Optional[str]:
|
|
|
15
15
|
return endpoint[7:]
|
|
16
16
|
return endpoint
|
|
17
17
|
|
|
18
|
+
# TODO: review error handling. It should be save, and only create log entries without effecting test execution.
|
|
18
19
|
class S3Connector:
|
|
19
20
|
def __init__(self,
|
|
20
21
|
aws_region_name: Optional[str],
|
|
@@ -51,8 +51,12 @@ def pytest_configure(config: Config):
|
|
|
51
51
|
run_id = pytest.testomatio.test_run_config.test_run_id
|
|
52
52
|
if not run_id:
|
|
53
53
|
run_details = pytest.testomatio.connector.create_test_run(**run.to_dict())
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
if run_details:
|
|
55
|
+
run_id = run_details.get('uid')
|
|
56
|
+
run.save_run_id(run_id)
|
|
57
|
+
else:
|
|
58
|
+
log.error("Failed to create testrun on Testomat.io")
|
|
59
|
+
|
|
56
60
|
|
|
57
61
|
|
|
58
62
|
|
|
@@ -32,19 +32,8 @@ class Testomatio:
|
|
|
32
32
|
return ""
|
|
33
33
|
return self.s3_connector.upload_file_object(file_bytes, key, bucket_name)
|
|
34
34
|
|
|
35
|
-
def add_artifacts(self,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
urls = arg
|
|
40
|
-
if not urls:
|
|
41
|
-
log.warn("Failed to add artifacts. No valid list of url has been provided")
|
|
42
|
-
return
|
|
35
|
+
def add_artifacts(self, node: Function, url_list) -> None:
|
|
36
|
+
artifact_urls = node.stash.get("artifact_urls", [])
|
|
37
|
+
artifact_urls.extend(url_list)
|
|
38
|
+
node.stash["artifact_urls"] = [ url for url in artifact_urls if url is not None]
|
|
43
39
|
|
|
44
|
-
if not hasattr(self, "request"):
|
|
45
|
-
log.warn("Couldn't attach link to the test. Make sure pytestomatio is configured correctly.")
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
artifact_urls = self.request.node.stash.get("artifact_urls", [])
|
|
49
|
-
artifact_urls.extend(urls)
|
|
50
|
-
self.request.node.stash["artifact_urls"] = [ url for url in artifact_urls if url is not None]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/decor/decorator_updater.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/testing/code_collector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/testomatio/testRunConfig.py
RENAMED
|
File without changes
|
{pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/testomatio/testomat_item.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/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.dev32 → pytestomatio-2.8.2.dev34}/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
|