qase-python-commons 3.1.5__py3-none-any.whl → 3.1.7__py3-none-any.whl
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.
- qase/commons/client/api_v1_client.py +9 -7
- {qase_python_commons-3.1.5.dist-info → qase_python_commons-3.1.7.dist-info}/METADATA +1 -1
- {qase_python_commons-3.1.5.dist-info → qase_python_commons-3.1.7.dist-info}/RECORD +5 -5
- {qase_python_commons-3.1.5.dist-info → qase_python_commons-3.1.7.dist-info}/WHEEL +0 -0
- {qase_python_commons-3.1.5.dist-info → qase_python_commons-3.1.7.dist-info}/top_level.txt +0 -0
|
@@ -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"
|
|
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}", "
|
|
92
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
|
@@ -3,7 +3,7 @@ qase/commons/config.py,sha256=meRRgDrsA9qQ9fZR4fnP0VdngrKiGcHF9nnJkf3eJpg,8320
|
|
|
3
3
|
qase/commons/loader.py,sha256=-MMY4HgSI6q1xq3NaJoq_w4liM73qdFKjYLVCT1E7Pc,1064
|
|
4
4
|
qase/commons/logger.py,sha256=ka5chQYBXLUB5pM4YHDBo3QCZfBTGMtC3H33tI4NbPQ,1027
|
|
5
5
|
qase/commons/utils.py,sha256=OOr6kQ5hPZEyHXwbwiTOTkonRxmmtkyZPPGqXQKp5vY,2799
|
|
6
|
-
qase/commons/client/api_v1_client.py,sha256=
|
|
6
|
+
qase/commons/client/api_v1_client.py,sha256=2Q2zZyiEjZeLAxMSH4uKuVdiy4mATwKPFpOyZnwNecs,11880
|
|
7
7
|
qase/commons/client/api_v2_client.py,sha256=F3wU_2EKe6eUjNRahvnDmpbx99PwZB6Lxc4VPRj7w58,7247
|
|
8
8
|
qase/commons/client/base_api_client.py,sha256=H8JnjqSrBFNfghDd3T3zxYOyKYHYe9QiJQXol1JqdQk,2613
|
|
9
9
|
qase/commons/exceptions/reporter.py,sha256=dP-Mwcq8HKBOjgu3YqhyULDmDGU09BmT6Fh9HjICaUc,45
|
|
@@ -34,7 +34,7 @@ qase/commons/reporters/core.py,sha256=0x5G-KVfEOWyXiXaX5__7JBIr3Rxy8vhy0cByUSZUc
|
|
|
34
34
|
qase/commons/reporters/report.py,sha256=MPsFv3k2l4652NyXEGFiSmwsSpwZT3Is-lLRXvsniz4,4606
|
|
35
35
|
qase/commons/reporters/testops.py,sha256=f5BcorFwIK5BSeA4Rv4IKDddkWrAXL_w-Y5Xn--NdYs,6264
|
|
36
36
|
qase/commons/validators/base.py,sha256=wwSn-4YiuXtfGMGnSKgo9Vm5hAKevVmmfd2Ro6Q7MYQ,173
|
|
37
|
-
qase_python_commons-3.1.
|
|
38
|
-
qase_python_commons-3.1.
|
|
39
|
-
qase_python_commons-3.1.
|
|
40
|
-
qase_python_commons-3.1.
|
|
37
|
+
qase_python_commons-3.1.7.dist-info/METADATA,sha256=Hmti6dUDtvSuahGdlyXFRZfh1DANOYN3ECGs5X5uuc0,1859
|
|
38
|
+
qase_python_commons-3.1.7.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
39
|
+
qase_python_commons-3.1.7.dist-info/top_level.txt,sha256=Mn5aFk7H7Uia4s1NRDsvebu8vCrFy9nOuRIBfkIY5kQ,5
|
|
40
|
+
qase_python_commons-3.1.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|