qase-python-commons 3.3.0__py3-none-any.whl → 3.3.1__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.

@@ -1,3 +1,4 @@
1
+ from datetime import datetime, timezone
1
2
  from typing import Dict, Union
2
3
 
3
4
  import certifi
@@ -99,7 +100,8 @@ class ApiV1Client(BaseApiClient):
99
100
  description=description,
100
101
  environment_id=(int(environment_id) if environment_id else None),
101
102
  plan_id=(int(plan_id) if plan_id else plan_id),
102
- is_autotest=True
103
+ is_autotest=True,
104
+ start_time=datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S")
103
105
  )
104
106
  self.logger.log_debug(f"Creating test run with parameters: {kwargs}")
105
107
  try:
@@ -78,6 +78,7 @@ class ApiV2Client(ApiV1Client):
78
78
  signature=result.signature,
79
79
  testops_id=result.get_testops_id(),
80
80
  execution=ResultExecution(status=result.execution.status, duration=result.execution.duration,
81
+ start_time=result.execution.start_time, end_time=result.execution.end_time,
81
82
  stacktrace=result.execution.stacktrace, thread=result.execution.thread),
82
83
  fields=ResultCreateFields.from_dict(result.fields),
83
84
  attachments=[attach.hash for attach in attached],
@@ -112,6 +113,8 @@ class ApiV2Client(ApiV1Client):
112
113
  prepared_step = {'execution': {}, 'data': {}, 'steps': []}
113
114
  prepared_step['execution']['status'] = ResultStepStatus(step.execution.status)
114
115
  prepared_step['execution']['duration'] = step.execution.duration
116
+ prepared_step['execution']['start_time'] = step.execution.start_time
117
+ prepared_step['execution']['end_time'] = step.execution.end_time
115
118
 
116
119
  if step.step_type == StepType.TEXT:
117
120
  prepared_step['data']['action'] = step.data.action
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: qase-python-commons
3
- Version: 3.3.0
3
+ Version: 3.3.1
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
@@ -3,8 +3,8 @@ qase/commons/config.py,sha256=dtF8JPHeGe4SxpR36WbvzX76yP-0nP43NpCf6sh9d-I,9245
3
3
  qase/commons/loader.py,sha256=-MMY4HgSI6q1xq3NaJoq_w4liM73qdFKjYLVCT1E7Pc,1064
4
4
  qase/commons/logger.py,sha256=K_8kE0EqpFbF2RbRU5TBw4Hl6GfK6PacpwkRXqHabl0,1234
5
5
  qase/commons/utils.py,sha256=OOr6kQ5hPZEyHXwbwiTOTkonRxmmtkyZPPGqXQKp5vY,2799
6
- qase/commons/client/api_v1_client.py,sha256=FiCvFQZEGVidmR-AaDyF2er3EbCoHj9JCmYcm7LhYoc,12731
7
- qase/commons/client/api_v2_client.py,sha256=afA-BfOA8Z4yM58H8NMEm-naOErOSt_UkGAke1yRxcY,8298
6
+ qase/commons/client/api_v1_client.py,sha256=rhPtQJZXt8aQjMpNoe910RC7cU6esdR1vyBjk5TOig8,12852
7
+ qase/commons/client/api_v2_client.py,sha256=M17n7XWbLCNA83eUpvUXkf3Ai9KSxiDLygQUCUSpJns,8570
8
8
  qase/commons/client/base_api_client.py,sha256=H8JnjqSrBFNfghDd3T3zxYOyKYHYe9QiJQXol1JqdQk,2613
9
9
  qase/commons/exceptions/reporter.py,sha256=dP-Mwcq8HKBOjgu3YqhyULDmDGU09BmT6Fh9HjICaUc,45
10
10
  qase/commons/models/__init__.py,sha256=9RH4aKBEvE6vHLcb_o_ngn2jNfGfcwpQ4u7ABEis85k,308
@@ -33,7 +33,7 @@ qase/commons/reporters/core.py,sha256=eLn24JWPK6MoqGonPx7YnjVtpK1gSLM379Fmlxea3L
33
33
  qase/commons/reporters/report.py,sha256=50PDOBZJZA3_Z45bggBtkNfntycUkO9RaGYnzjdy8uA,4853
34
34
  qase/commons/reporters/testops.py,sha256=9GOXHTmuAX-kglXINyi4z0ul01IqaYQmJtTX-S2A2ek,6280
35
35
  qase/commons/validators/base.py,sha256=wwSn-4YiuXtfGMGnSKgo9Vm5hAKevVmmfd2Ro6Q7MYQ,173
36
- qase_python_commons-3.3.0.dist-info/METADATA,sha256=jfwvrB4LAPlIvYvNo3ogp87fJf8dopIpZ0x_bAqXV3M,1857
37
- qase_python_commons-3.3.0.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
38
- qase_python_commons-3.3.0.dist-info/top_level.txt,sha256=Mn5aFk7H7Uia4s1NRDsvebu8vCrFy9nOuRIBfkIY5kQ,5
39
- qase_python_commons-3.3.0.dist-info/RECORD,,
36
+ qase_python_commons-3.3.1.dist-info/METADATA,sha256=twi8cruaJ7ETSS9D5d9sVLk7nNFA8na6KHHHogzo4yo,1857
37
+ qase_python_commons-3.3.1.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
38
+ qase_python_commons-3.3.1.dist-info/top_level.txt,sha256=Mn5aFk7H7Uia4s1NRDsvebu8vCrFy9nOuRIBfkIY5kQ,5
39
+ qase_python_commons-3.3.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (76.0.0)
2
+ Generator: setuptools (76.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5