qase-python-commons 3.0.2b9__tar.gz → 3.0.4__tar.gz

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.
Files changed (36) hide show
  1. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/PKG-INFO +3 -3
  2. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/pyproject.toml +3 -3
  3. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/config.py +1 -1
  4. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/reporters/core.py +6 -3
  5. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase_python_commons.egg-info/PKG-INFO +3 -3
  6. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase_python_commons.egg-info/requires.txt +2 -2
  7. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/README.md +0 -0
  8. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/setup.cfg +0 -0
  9. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/__init__.py +0 -0
  10. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/client/api_v1_client.py +0 -0
  11. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/client/api_v2_client.py +0 -0
  12. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/client/base_api_client.py +0 -0
  13. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/exceptions/reporter.py +0 -0
  14. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/loader.py +0 -0
  15. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/logger.py +0 -0
  16. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/__init__.py +0 -0
  17. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/attachment.py +0 -0
  18. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/basemodel.py +0 -0
  19. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/relation.py +0 -0
  20. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/result.py +0 -0
  21. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/run.py +0 -0
  22. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/runtime.py +0 -0
  23. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/step.py +0 -0
  24. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/models/suite.py +0 -0
  25. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/profilers/__init__.py +0 -0
  26. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/profilers/db.py +0 -0
  27. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/profilers/network.py +0 -0
  28. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/profilers/sleep.py +0 -0
  29. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/reporters/__init__.py +0 -0
  30. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/reporters/report.py +0 -0
  31. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/reporters/testops.py +0 -0
  32. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/utils.py +0 -0
  33. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase/commons/validators/base.py +0 -0
  34. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase_python_commons.egg-info/SOURCES.txt +0 -0
  35. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase_python_commons.egg-info/dependency_links.txt +0 -0
  36. {qase_python_commons-3.0.2b9 → qase_python_commons-3.0.4}/src/qase_python_commons.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qase-python-commons
3
- Version: 3.0.2b9
3
+ Version: 3.0.4
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
@@ -22,8 +22,8 @@ Requires-Python: >=3.7
22
22
  Description-Content-Type: text/markdown
23
23
  Requires-Dist: certifi>=2024.2.2
24
24
  Requires-Dist: attrs>=23.2.0
25
- Requires-Dist: qase-api-client~=1.0.0b2
26
- Requires-Dist: qase-api-v2-client~=1.0.0b2
25
+ Requires-Dist: qase-api-client~=1.0.0
26
+ Requires-Dist: qase-api-v2-client~=1.0.0
27
27
  Requires-Dist: more_itertools
28
28
  Provides-Extra: testing
29
29
  Requires-Dist: pytest; extra == "testing"
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "qase-python-commons"
7
- version = "3.0.2b9"
7
+ version = "3.0.4"
8
8
  description = "A library for Qase TestOps and Qase Report"
9
9
  readme = "README.md"
10
10
  authors = [{name = "Qase Team", email = "support@qase.io"}]
@@ -30,8 +30,8 @@ requires-python = ">=3.7"
30
30
  dependencies = [
31
31
  "certifi>=2024.2.2",
32
32
  "attrs>=23.2.0",
33
- "qase-api-client~=1.0.0b2",
34
- "qase-api-v2-client~=1.0.0b2",
33
+ "qase-api-client~=1.0.0",
34
+ "qase-api-v2-client~=1.0.0",
35
35
  "more_itertools"
36
36
  ]
37
37
 
@@ -30,7 +30,7 @@ class ConfigManager:
30
30
  def get(self, key, default=None, value_type=None):
31
31
  # Use _get_config method to get the value. If None, return default.
32
32
  value = self._get_config(key)
33
- if value and value_type and value_type == bool:
33
+ if value is not None and value_type is not None and value_type == bool:
34
34
  return self.parseBool(value)
35
35
  return value or default
36
36
 
@@ -9,7 +9,7 @@ from .report import QaseReport
9
9
  from .testops import QaseTestOps
10
10
 
11
11
  from ..models import Result, Attachment, Runtime
12
- from typing import Union
12
+ from typing import Union, List
13
13
 
14
14
  """
15
15
  CoreReporter is a facade for all reporters and it is used to initialize and manage them.
@@ -21,7 +21,7 @@ class QaseCoreReporter:
21
21
  def __init__(self, config: Config):
22
22
  self.config = config
23
23
  self.logger = Logger(self.config.get('debug', False, bool))
24
- self.execution_plan = None
24
+ self._execution_plan = None
25
25
  self.profilers = []
26
26
  self.overhead = 0
27
27
 
@@ -149,6 +149,9 @@ class QaseCoreReporter:
149
149
  self.logger.log(e, 'error')
150
150
  self._run_fallback()
151
151
 
152
+ def get_execution_plan(self) -> Union[List[int], None]:
153
+ return self._execution_plan
154
+
152
155
  def _run_fallback(self) -> None:
153
156
  if self.fallback:
154
157
  try:
@@ -174,7 +177,7 @@ class QaseCoreReporter:
174
177
  api_token=self.config.get("testops.api.token"),
175
178
  host=self.config.get("testops.api.host", "qase.io"),
176
179
  )
177
- self.execution_plan = loader.load(self.config.get("testops.project"),
180
+ self._execution_plan = loader.load(self.config.get("testops.project"),
178
181
  int(self.config.get("testops.plan.id")))
179
182
  except Exception as e:
180
183
  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.0.2b9
3
+ Version: 3.0.4
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
@@ -22,8 +22,8 @@ Requires-Python: >=3.7
22
22
  Description-Content-Type: text/markdown
23
23
  Requires-Dist: certifi>=2024.2.2
24
24
  Requires-Dist: attrs>=23.2.0
25
- Requires-Dist: qase-api-client~=1.0.0b2
26
- Requires-Dist: qase-api-v2-client~=1.0.0b2
25
+ Requires-Dist: qase-api-client~=1.0.0
26
+ Requires-Dist: qase-api-v2-client~=1.0.0
27
27
  Requires-Dist: more_itertools
28
28
  Provides-Extra: testing
29
29
  Requires-Dist: pytest; extra == "testing"
@@ -1,7 +1,7 @@
1
1
  certifi>=2024.2.2
2
2
  attrs>=23.2.0
3
- qase-api-client~=1.0.0b2
4
- qase-api-v2-client~=1.0.0b2
3
+ qase-api-client~=1.0.0
4
+ qase-api-v2-client~=1.0.0
5
5
  more_itertools
6
6
 
7
7
  [testing]