qase-python-commons 3.5.6__py3-none-any.whl → 3.5.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/models/step.py +24 -4
- {qase_python_commons-3.5.6.dist-info → qase_python_commons-3.5.7.dist-info}/METADATA +1 -1
- {qase_python_commons-3.5.6.dist-info → qase_python_commons-3.5.7.dist-info}/RECORD +5 -5
- {qase_python_commons-3.5.6.dist-info → qase_python_commons-3.5.7.dist-info}/WHEEL +0 -0
- {qase_python_commons-3.5.6.dist-info → qase_python_commons-3.5.7.dist-info}/top_level.txt +0 -0
qase/commons/models/step.py
CHANGED
|
@@ -43,10 +43,20 @@ class StepRequestData(BaseModel):
|
|
|
43
43
|
self.response_body = None
|
|
44
44
|
self.status_code = None
|
|
45
45
|
if isinstance(request_body, bytes):
|
|
46
|
-
|
|
46
|
+
try:
|
|
47
|
+
request_body = request_body.decode('utf-8')
|
|
48
|
+
except UnicodeDecodeError:
|
|
49
|
+
# For binary data (like file uploads), keep as base64 encoded string
|
|
50
|
+
import base64
|
|
51
|
+
request_body = base64.b64encode(request_body).decode('ascii')
|
|
47
52
|
self.request_body = request_body
|
|
48
53
|
if isinstance(request_headers, bytes):
|
|
49
|
-
|
|
54
|
+
try:
|
|
55
|
+
request_headers = request_headers.decode('utf-8')
|
|
56
|
+
except UnicodeDecodeError:
|
|
57
|
+
# For binary headers, keep as base64 encoded string
|
|
58
|
+
import base64
|
|
59
|
+
request_headers = base64.b64encode(request_headers).decode('ascii')
|
|
50
60
|
self.request_headers = request_headers
|
|
51
61
|
self.request_method = request_method
|
|
52
62
|
self.request_url = request_url
|
|
@@ -56,10 +66,20 @@ class StepRequestData(BaseModel):
|
|
|
56
66
|
self.status_code = status_code
|
|
57
67
|
|
|
58
68
|
if isinstance(response_body, bytes):
|
|
59
|
-
|
|
69
|
+
try:
|
|
70
|
+
response_body = response_body.decode('utf-8')
|
|
71
|
+
except UnicodeDecodeError:
|
|
72
|
+
# For binary data (like file downloads), keep as base64 encoded string
|
|
73
|
+
import base64
|
|
74
|
+
response_body = base64.b64encode(response_body).decode('ascii')
|
|
60
75
|
self.response_body = response_body
|
|
61
76
|
if isinstance(response_headers, bytes):
|
|
62
|
-
|
|
77
|
+
try:
|
|
78
|
+
response_headers = response_headers.decode('utf-8')
|
|
79
|
+
except UnicodeDecodeError:
|
|
80
|
+
# For binary headers, keep as base64 encoded string
|
|
81
|
+
import base64
|
|
82
|
+
response_headers = base64.b64encode(response_headers).decode('ascii')
|
|
63
83
|
self.response_headers = response_headers
|
|
64
84
|
|
|
65
85
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qase-python-commons
|
|
3
|
-
Version: 3.5.
|
|
3
|
+
Version: 3.5.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/main/qase-python-commons
|
|
@@ -15,7 +15,7 @@ qase/commons/models/relation.py,sha256=HymHeh1uBcoQnTs4Vra7WJ_KFkhryj5o7cShjoGQI
|
|
|
15
15
|
qase/commons/models/result.py,sha256=8dES10mjBx7SdltAlKDB39bO3k1-xGQVKrHWn19gXK0,3793
|
|
16
16
|
qase/commons/models/run.py,sha256=ANbljW1mgua4JF1wGZG9S-jnUpI7FC4F15sAQOoNnko,3096
|
|
17
17
|
qase/commons/models/runtime.py,sha256=h0kJcPYRo8dglIQVFyzh-cFpWb3bAaQaIq5wV8VfClM,1508
|
|
18
|
-
qase/commons/models/step.py,sha256=
|
|
18
|
+
qase/commons/models/step.py,sha256=svH2jvxiJRBugCjKdifXzOKli9OzQQvn8lsPhzd20yY,5433
|
|
19
19
|
qase/commons/models/config/api.py,sha256=IyYY2f3ncESUAEGvkE3-meatebBFJdvgo7KNOQnxLE0,288
|
|
20
20
|
qase/commons/models/config/batch.py,sha256=X0H8SVOCCD2pV6LSMqjI-tIjRcLifnrM5MareK2FhQw,321
|
|
21
21
|
qase/commons/models/config/connection.py,sha256=wK2fGjc0G0rMVVhPnjw_t_M1YWZwANlhwl-awmI7XSo,516
|
|
@@ -36,7 +36,7 @@ qase/commons/reporters/testops.py,sha256=uph_8upIt5bu4ncqyK7ehXR9NqtpZ34wGUBFLVJ
|
|
|
36
36
|
qase/commons/util/__init__.py,sha256=0sRRfrMOIPCHpk9tXM94Pj10qrk18B61qEcbLpRjw_I,74
|
|
37
37
|
qase/commons/util/host_data.py,sha256=n8o5PDs8kELCZZ5GR7Jug6LsgZHWJudU7iRmZHRdrlw,5264
|
|
38
38
|
qase/commons/validators/base.py,sha256=wwSn-4YiuXtfGMGnSKgo9Vm5hAKevVmmfd2Ro6Q7MYQ,173
|
|
39
|
-
qase_python_commons-3.5.
|
|
40
|
-
qase_python_commons-3.5.
|
|
41
|
-
qase_python_commons-3.5.
|
|
42
|
-
qase_python_commons-3.5.
|
|
39
|
+
qase_python_commons-3.5.7.dist-info/METADATA,sha256=T-YS5OHaPejUSOC52D4R_GSF1BgHGOnlWkYfDtYCmYg,1857
|
|
40
|
+
qase_python_commons-3.5.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
41
|
+
qase_python_commons-3.5.7.dist-info/top_level.txt,sha256=Mn5aFk7H7Uia4s1NRDsvebu8vCrFy9nOuRIBfkIY5kQ,5
|
|
42
|
+
qase_python_commons-3.5.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|