qase-python-commons 3.1.5__py3-none-any.whl → 3.1.6__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 +8 -4
- {qase_python_commons-3.1.5.dist-info → qase_python_commons-3.1.6.dist-info}/METADATA +1 -1
- {qase_python_commons-3.1.5.dist-info → qase_python_commons-3.1.6.dist-info}/RECORD +5 -5
- {qase_python_commons-3.1.5.dist-info → qase_python_commons-3.1.6.dist-info}/WHEEL +0 -0
- {qase_python_commons-3.1.5.dist-info → qase_python_commons-3.1.6.dist-info}/top_level.txt +0 -0
|
@@ -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:
|
|
@@ -139,7 +139,9 @@ class ApiV1Client(BaseApiClient):
|
|
|
139
139
|
attached = []
|
|
140
140
|
if result.attachments:
|
|
141
141
|
for attachment in result.attachments:
|
|
142
|
-
|
|
142
|
+
attach_id = self._upload_attachment(project_code, attachment)
|
|
143
|
+
if attach_id:
|
|
144
|
+
attached.append(attach_id)
|
|
143
145
|
|
|
144
146
|
steps = []
|
|
145
147
|
for step in result.steps:
|
|
@@ -252,7 +254,9 @@ class ApiV1Client(BaseApiClient):
|
|
|
252
254
|
if step.attachments:
|
|
253
255
|
uploaded_attachments = []
|
|
254
256
|
for file in step.attachments:
|
|
255
|
-
|
|
257
|
+
attach_id = self._upload_attachment(project_code, file)
|
|
258
|
+
if attach_id:
|
|
259
|
+
uploaded_attachments.append(attach_id)
|
|
256
260
|
prepared_step['attachments'] = [attach.hash for attach in uploaded_attachments]
|
|
257
261
|
|
|
258
262
|
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.6
|
|
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=_NTKXY4P34xi8UiYAyun7jB8cYjC0bNJ32SgIqo2biU,11978
|
|
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.6.dist-info/METADATA,sha256=OBhruevZQ73M78kCWqcZfkZVUjEFcCaAyGvmZUg6sL8,1859
|
|
38
|
+
qase_python_commons-3.1.6.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
39
|
+
qase_python_commons-3.1.6.dist-info/top_level.txt,sha256=Mn5aFk7H7Uia4s1NRDsvebu8vCrFy9nOuRIBfkIY5kQ,5
|
|
40
|
+
qase_python_commons-3.1.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|