qase-python-commons 3.1.0b4__py3-none-any.whl → 3.1.0b6__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.

@@ -186,17 +186,13 @@ class ApiV1Client(BaseApiClient):
186
186
  "steps": steps,
187
187
  "param": result.params,
188
188
  "defect": self.config.testops.defect,
189
+ "case": case_data
189
190
  }
190
191
 
191
192
  test_ops_id = result.get_testops_id()
192
193
 
193
194
  if test_ops_id:
194
195
  result_model["case_id"] = test_ops_id
195
- result_model["case"] = None
196
- return result_model
197
-
198
- result_model["case_id"] = None
199
- result_model["case"] = case_data
200
196
 
201
197
  self.logger.log_debug(f"Prepared result: {result_model}")
202
198
 
@@ -10,7 +10,7 @@ from .testops import QaseTestOps
10
10
 
11
11
  from ..models import Result, Attachment, Runtime
12
12
  from ..models.config.qaseconfig import Mode
13
- from typing import Union
13
+ from typing import Union, List
14
14
 
15
15
  """
16
16
  CoreReporter is a facade for all reporters and it is used to initialize and manage them.
@@ -23,7 +23,7 @@ class QaseCoreReporter:
23
23
  config.validate_config()
24
24
  self.config = config.config
25
25
  self.logger = Logger(self.config.debug)
26
- self.execution_plan = None
26
+ self._execution_plan = None
27
27
  self.profilers = []
28
28
  self.overhead = 0
29
29
 
@@ -151,6 +151,9 @@ class QaseCoreReporter:
151
151
  self.logger.log(e, 'error')
152
152
  self._run_fallback()
153
153
 
154
+ def get_execution_plan(self) -> Union[None, List[int]]:
155
+ return self._execution_plan
156
+
154
157
  def _run_fallback(self) -> None:
155
158
  if self.fallback:
156
159
  try:
@@ -176,7 +179,7 @@ class QaseCoreReporter:
176
179
  api_token=self.config.testops.api.token,
177
180
  host=self.config.testops.api.host
178
181
  )
179
- self.execution_plan = loader.load(self.config.testops.project,
182
+ self._execution_plan = loader.load(self.config.testops.project,
180
183
  int(self.config.testops.plan.id))
181
184
  except Exception as e:
182
185
  self.logger.log('Failed to load test plan from Qase TestOps', 'info')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qase-python-commons
3
- Version: 3.1.0b4
3
+ Version: 3.1.0b6
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
@@ -20,18 +20,18 @@ Classifier: Programming Language :: Python :: 3.11
20
20
  Classifier: Programming Language :: Python :: 3.12
21
21
  Requires-Python: >=3.7
22
22
  Description-Content-Type: text/markdown
23
- Requires-Dist: certifi >=2024.2.2
24
- Requires-Dist: attrs >=23.2.0
25
- Requires-Dist: qase-api-client ~=1.0.1
26
- Requires-Dist: qase-api-v2-client ~=1.0.0
23
+ Requires-Dist: certifi>=2024.2.2
24
+ Requires-Dist: attrs>=23.2.0
25
+ Requires-Dist: qase-api-client~=1.0.1
26
+ Requires-Dist: qase-api-v2-client~=1.0.0
27
27
  Requires-Dist: more-itertools
28
28
  Provides-Extra: testing
29
- Requires-Dist: pytest ; extra == 'testing'
30
- Requires-Dist: pytest-cov ; extra == 'testing'
31
- Requires-Dist: mock ; extra == 'testing'
32
- Requires-Dist: more-itertools ; extra == 'testing'
33
- Requires-Dist: requests ; extra == 'testing'
34
- Requires-Dist: urllib3 ; extra == 'testing'
29
+ Requires-Dist: pytest; extra == "testing"
30
+ Requires-Dist: pytest-cov; extra == "testing"
31
+ Requires-Dist: mock; extra == "testing"
32
+ Requires-Dist: more-itertools; extra == "testing"
33
+ Requires-Dist: requests; extra == "testing"
34
+ Requires-Dist: urllib3; extra == "testing"
35
35
 
36
36
  # Qase Python Commons
37
37
 
@@ -3,7 +3,7 @@ qase/commons/config.py,sha256=meRRgDrsA9qQ9fZR4fnP0VdngrKiGcHF9nnJkf3eJpg,8320
3
3
  qase/commons/loader.py,sha256=muDxniNVmP4aGnAUR999wrgc7gg_-nD5p2RDSiQA_JI,1065
4
4
  qase/commons/logger.py,sha256=Tg1sBWcn-3Tw1YLNj1kTWjGuLFMTNnwTMQmi6dvAbz8,997
5
5
  qase/commons/utils.py,sha256=OOr6kQ5hPZEyHXwbwiTOTkonRxmmtkyZPPGqXQKp5vY,2799
6
- qase/commons/client/api_v1_client.py,sha256=uu_TmkkKRq_xIHeyvoU8kXX_S2rAitJNHe3JvRhRwIY,11161
6
+ qase/commons/client/api_v1_client.py,sha256=WERbX3l4740GDXEx8FA6ENy8gShBwkZzMEd6mrT3PhQ,11038
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
@@ -30,11 +30,11 @@ qase/commons/profilers/db.py,sha256=Am1tvvLgJq4_A8JsuSeBGf47BD2lnSX-5KiMjSgr-Ko,
30
30
  qase/commons/profilers/network.py,sha256=zxW_sErcMgHjzVGxk6Njp23YzhZrGgh7trC1r2zHHjU,4784
31
31
  qase/commons/profilers/sleep.py,sha256=HT6h0R-2XHZAoBYRxS2T_KC8RrnEoVjP7MXusaE4Nec,1624
32
32
  qase/commons/reporters/__init__.py,sha256=J0aNLzb_MPPT_zF8BtX_w9nj_U7Ad06RGpyWK5Pxq1o,169
33
- qase/commons/reporters/core.py,sha256=vrI9k3cSXqM24fhkyrZRYLJl92ADMh7CCUoH47egEIM,7916
33
+ qase/commons/reporters/core.py,sha256=0x5G-KVfEOWyXiXaX5__7JBIr3Rxy8vhy0cByUSZUc0,8021
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.0b4.dist-info/METADATA,sha256=29L8I2aeM4wbuvA3i35LkNigAt6FlMsfggO38aj5Qn4,1871
38
- qase_python_commons-3.1.0b4.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
39
- qase_python_commons-3.1.0b4.dist-info/top_level.txt,sha256=Mn5aFk7H7Uia4s1NRDsvebu8vCrFy9nOuRIBfkIY5kQ,5
40
- qase_python_commons-3.1.0b4.dist-info/RECORD,,
37
+ qase_python_commons-3.1.0b6.dist-info/METADATA,sha256=KB6JegrDD7jikXTbp-Pyh6R1b8dLDH5ZDN9SQykILu8,1861
38
+ qase_python_commons-3.1.0b6.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
39
+ qase_python_commons-3.1.0b6.dist-info/top_level.txt,sha256=Mn5aFk7H7Uia4s1NRDsvebu8vCrFy9nOuRIBfkIY5kQ,5
40
+ qase_python_commons-3.1.0b6.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.1.0)
2
+ Generator: setuptools (73.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5