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.
Files changed (40) hide show
  1. {pytestomatio-2.8.2.dev32/pytestomatio.egg-info → pytestomatio-2.8.2.dev34}/PKG-INFO +1 -1
  2. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pyproject.toml +1 -1
  3. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/connect/s3_connector.py +1 -0
  4. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/main.py +6 -2
  5. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/testomatio/testomatio.py +4 -15
  6. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34/pytestomatio.egg-info}/PKG-INFO +1 -1
  7. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/LICENSE +0 -0
  8. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/README.md +0 -0
  9. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/__init__.py +0 -0
  10. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/connect/__init__.py +0 -0
  11. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/connect/connector.py +0 -0
  12. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/decor/__init__.py +0 -0
  13. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/decor/decorator_updater.py +0 -0
  14. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/decor/default.py +0 -0
  15. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/decor/pep8.py +0 -0
  16. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/testing/__init__.py +0 -0
  17. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/testing/code_collector.py +0 -0
  18. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/testing/testItem.py +0 -0
  19. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/testomatio/__init__.py +0 -0
  20. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/testomatio/testRunConfig.py +0 -0
  21. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/testomatio/testomat_item.py +0 -0
  22. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/utils/__init__.py +0 -0
  23. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/utils/helper.py +0 -0
  24. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/utils/parser_setup.py +0 -0
  25. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio/utils/validations.py +0 -0
  26. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio.egg-info/SOURCES.txt +0 -0
  27. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio.egg-info/dependency_links.txt +0 -0
  28. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio.egg-info/entry_points.txt +0 -0
  29. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio.egg-info/requires.txt +0 -0
  30. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/pytestomatio.egg-info/top_level.txt +0 -0
  31. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/setup.cfg +0 -0
  32. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/sub/__init__.py +0 -0
  33. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/sub/sub_mob/__init__.py +0 -0
  34. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/sub/sub_mob/sub_sub_class_test.py +0 -0
  35. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/sub/sub_mob/sub_sub_test.py +0 -0
  36. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/sub/test_class_sub.py +0 -0
  37. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/sub/test_sub.py +0 -0
  38. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/test_class_root.py +0 -0
  39. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/test_decorators.py +0 -0
  40. {pytestomatio-2.8.2.dev32 → pytestomatio-2.8.2.dev34}/tests/test_root.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pytestomatio
3
- Version: 2.8.2.dev32
3
+ Version: 2.8.2.dev34
4
4
  Summary: Pytest plugin to sync test with testomat.io
5
5
  Author: Oleksii Ostapov, TikoQA
6
6
  Project-URL: Testomat.io, https://testomat.io/
@@ -13,7 +13,7 @@ version_provider = "pep621"
13
13
  update_changelog_on_bump = false
14
14
  [project]
15
15
  name = "pytestomatio"
16
- version = "2.8.2.dev32"
16
+ version = "2.8.2.dev34"
17
17
 
18
18
  dependencies = [
19
19
  "requests>=2.29.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
- run_id = run_details.get('uid')
55
- run.save_run_id(run_id)
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, *args) -> None:
36
- urls = None
37
- for arg in args:
38
- if isinstance(arg, list):
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]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pytestomatio
3
- Version: 2.8.2.dev32
3
+ Version: 2.8.2.dev34
4
4
  Summary: Pytest plugin to sync test with testomat.io
5
5
  Author: Oleksii Ostapov, TikoQA
6
6
  Project-URL: Testomat.io, https://testomat.io/