qase-python-commons 3.1.5__tar.gz → 3.1.7__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.

Potentially problematic release.


This version of qase-python-commons might be problematic. Click here for more details.

Files changed (45) hide show
  1. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/PKG-INFO +1 -1
  2. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/pyproject.toml +1 -1
  3. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/client/api_v1_client.py +9 -7
  4. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase_python_commons.egg-info/PKG-INFO +1 -1
  5. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/README.md +0 -0
  6. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/setup.cfg +0 -0
  7. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/__init__.py +0 -0
  8. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/client/api_v2_client.py +0 -0
  9. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/client/base_api_client.py +0 -0
  10. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/config.py +0 -0
  11. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/exceptions/reporter.py +0 -0
  12. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/loader.py +0 -0
  13. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/logger.py +0 -0
  14. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/__init__.py +0 -0
  15. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/attachment.py +0 -0
  16. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/basemodel.py +0 -0
  17. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/config/api.py +0 -0
  18. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/config/batch.py +0 -0
  19. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/config/connection.py +0 -0
  20. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/config/framework.py +0 -0
  21. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/config/plan.py +0 -0
  22. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/config/qaseconfig.py +0 -0
  23. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/config/report.py +0 -0
  24. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/config/run.py +0 -0
  25. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/config/testops.py +0 -0
  26. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/relation.py +0 -0
  27. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/result.py +0 -0
  28. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/run.py +0 -0
  29. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/runtime.py +0 -0
  30. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/step.py +0 -0
  31. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/models/suite.py +0 -0
  32. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/profilers/__init__.py +0 -0
  33. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/profilers/db.py +0 -0
  34. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/profilers/network.py +0 -0
  35. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/profilers/sleep.py +0 -0
  36. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/reporters/__init__.py +0 -0
  37. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/reporters/core.py +0 -0
  38. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/reporters/report.py +0 -0
  39. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/reporters/testops.py +0 -0
  40. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/utils.py +0 -0
  41. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase/commons/validators/base.py +0 -0
  42. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase_python_commons.egg-info/SOURCES.txt +0 -0
  43. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase_python_commons.egg-info/dependency_links.txt +0 -0
  44. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase_python_commons.egg-info/requires.txt +0 -0
  45. {qase_python_commons-3.1.5 → qase_python_commons-3.1.7}/src/qase_python_commons.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qase-python-commons
3
- Version: 3.1.5
3
+ Version: 3.1.7
4
4
  Summary: A library for Qase TestOps and Qase Report
5
5
  Author-email: Qase Team <support@qase.io>
6
6
  Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/master/qase-python-commons
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "qase-python-commons"
7
- version = "3.1.5"
7
+ version = "3.1.7"
8
8
  description = "A library for Qase TestOps and Qase Report"
9
9
  readme = "README.md"
10
10
  authors = [{name = "Qase Team", email = "support@qase.io"}]
@@ -74,7 +74,7 @@ class ApiV1Client(BaseApiClient):
74
74
  return
75
75
  try:
76
76
  api_runs.complete_run(project_code, run_id)
77
- self.logger.log(f"Run {run_id} was completed successfully", "info")
77
+ self.logger.log(f"Test run link: {self.web}/run/{project_code}/dashboard/{run_id}", "info")
78
78
  except Exception as e:
79
79
  self.logger.log(f"Error at completing run {run_id}: {e}", "error")
80
80
  raise ReporterException(e)
@@ -88,8 +88,8 @@ class ApiV1Client(BaseApiClient):
88
88
  return response.result
89
89
 
90
90
  except Exception as e:
91
- self.logger.log(f"Error at uploading attachment: {e}", "error")
92
- raise ReporterException(e)
91
+ self.logger.log(f"Error at uploading attachment: {e}", "debug")
92
+ return None
93
93
 
94
94
  def create_test_run(self, project_code: str, title: str, description: str, plan_id=None,
95
95
  environment_id=None) -> str:
@@ -107,8 +107,6 @@ class ApiV1Client(BaseApiClient):
107
107
  run_create=RunCreate(**{k: v for k, v in kwargs.items() if v is not None})
108
108
  )
109
109
 
110
- self.logger.log(f"Test run was created: {self.web}/run/{project_code}/dashboard/{result.result.id}", "info")
111
-
112
110
  return result.result.id
113
111
 
114
112
  except Exception as e:
@@ -139,7 +137,9 @@ class ApiV1Client(BaseApiClient):
139
137
  attached = []
140
138
  if result.attachments:
141
139
  for attachment in result.attachments:
142
- attached.extend(self._upload_attachment(project_code, attachment))
140
+ attach_id = self._upload_attachment(project_code, attachment)
141
+ if attach_id:
142
+ attached.append(attach_id)
143
143
 
144
144
  steps = []
145
145
  for step in result.steps:
@@ -252,7 +252,9 @@ class ApiV1Client(BaseApiClient):
252
252
  if step.attachments:
253
253
  uploaded_attachments = []
254
254
  for file in step.attachments:
255
- uploaded_attachments.extend(self._upload_attachment(project_code, file))
255
+ attach_id = self._upload_attachment(project_code, file)
256
+ if attach_id:
257
+ uploaded_attachments.append(attach_id)
256
258
  prepared_step['attachments'] = [attach.hash for attach in uploaded_attachments]
257
259
 
258
260
  if step.steps:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qase-python-commons
3
- Version: 3.1.5
3
+ Version: 3.1.7
4
4
  Summary: A library for Qase TestOps and Qase Report
5
5
  Author-email: Qase Team <support@qase.io>
6
6
  Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/master/qase-python-commons