qase-python-commons 3.2.3__tar.gz → 3.2.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.

Potentially problematic release.


This version of qase-python-commons might be problematic. Click here for more details.

Files changed (44) hide show
  1. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/PKG-INFO +2 -2
  2. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/pyproject.toml +2 -2
  3. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/config.py +20 -0
  4. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/models/config/framework.py +17 -0
  5. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase_python_commons.egg-info/PKG-INFO +2 -2
  6. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/README.md +0 -0
  7. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/setup.cfg +0 -0
  8. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/__init__.py +0 -0
  9. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/client/api_v1_client.py +0 -0
  10. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/client/api_v2_client.py +0 -0
  11. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/client/base_api_client.py +0 -0
  12. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/exceptions/reporter.py +0 -0
  13. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/loader.py +0 -0
  14. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/logger.py +0 -0
  15. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/models/__init__.py +0 -0
  16. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/models/attachment.py +0 -0
  17. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/models/basemodel.py +0 -0
  18. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/models/config/api.py +0 -0
  19. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/models/config/batch.py +0 -0
  20. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/models/config/connection.py +0 -0
  21. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/models/config/plan.py +0 -0
  22. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/models/config/qaseconfig.py +0 -0
  23. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/models/config/report.py +0 -0
  24. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/models/config/run.py +0 -0
  25. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/models/config/testops.py +0 -0
  26. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/models/relation.py +0 -0
  27. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/models/result.py +0 -0
  28. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/models/run.py +0 -0
  29. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/models/runtime.py +0 -0
  30. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/models/step.py +0 -0
  31. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/profilers/__init__.py +0 -0
  32. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/profilers/db.py +0 -0
  33. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/profilers/network.py +0 -0
  34. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/profilers/sleep.py +0 -0
  35. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/reporters/__init__.py +0 -0
  36. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/reporters/core.py +0 -0
  37. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/reporters/report.py +0 -0
  38. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/reporters/testops.py +0 -0
  39. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/utils.py +0 -0
  40. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase/commons/validators/base.py +0 -0
  41. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase_python_commons.egg-info/SOURCES.txt +0 -0
  42. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase_python_commons.egg-info/dependency_links.txt +0 -0
  43. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase_python_commons.egg-info/requires.txt +0 -0
  44. {qase_python_commons-3.2.3 → qase_python_commons-3.2.4}/src/qase_python_commons.egg-info/top_level.txt +0 -0
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qase-python-commons
3
- Version: 3.2.3
3
+ Version: 3.2.4
4
4
  Summary: A library for Qase TestOps and Qase Report
5
5
  Author-email: Qase Team <support@qase.io>
6
- Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/master/qase-python-commons
6
+ Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/main/qase-python-commons
7
7
  Classifier: Development Status :: 5 - Production/Stable
8
8
  Classifier: Programming Language :: Python
9
9
  Classifier: Intended Audience :: Developers
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "qase-python-commons"
7
- version = "3.2.3"
7
+ version = "3.2.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"}]
@@ -25,7 +25,7 @@ classifiers = [
25
25
  'Programming Language :: Python :: 3.11',
26
26
  'Programming Language :: Python :: 3.12',
27
27
  ]
28
- urls = {"Homepage" = "https://github.com/qase-tms/qase-python/tree/master/qase-python-commons"}
28
+ urls = {"Homepage" = "https://github.com/qase-tms/qase-python/tree/main/qase-python-commons"}
29
29
  requires-python = ">=3.7"
30
30
  dependencies = [
31
31
  "certifi>=2024.2.2",
@@ -145,6 +145,19 @@ class ConfigManager:
145
145
  pytest.get("captureLogs")
146
146
  )
147
147
 
148
+ if pytest.get("xfailStatus"):
149
+ xfail_status = pytest.get("xfailStatus")
150
+
151
+ if xfail_status.get("xfail"):
152
+ self.config.framework.pytest.xfail_status.set_xfail(
153
+ xfail_status.get("xfail")
154
+ )
155
+
156
+ if xfail_status.get("xpass"):
157
+ self.config.framework.pytest.xfail_status.set_xpass(
158
+ xfail_status.get("xpass")
159
+ )
160
+
148
161
  except Exception as e:
149
162
  self.logger.log("Failed to load config from file", "error")
150
163
 
@@ -214,5 +227,12 @@ class ConfigManager:
214
227
  if key == 'QASE_PYTEST_CAPTURE_LOGS':
215
228
  self.config.framework.pytest.set_capture_logs(value)
216
229
 
230
+ if key == 'QASE_PYTEST_XFAIL_STATUS_XFAIL':
231
+ self.config.framework.pytest.xfail_status.set_xfail(value)
232
+
233
+ if key == 'QASE_PYTEST_XFAIL_STATUS_XPASS':
234
+ self.config.framework.pytest.xfail_status.set_xpass(value)
235
+
236
+
217
237
  except Exception as e:
218
238
  self.logger.log("Failed to load config from env vars {e}", "error")
@@ -17,11 +17,28 @@ class Trace(Enum):
17
17
  failed = "retain-on-failure"
18
18
 
19
19
 
20
+ class XFailStatus(BaseModel):
21
+ xfail: str = None
22
+ xpass: str = None
23
+
24
+ def __init__(self):
25
+ self.xfail = 'skipped'
26
+ self.xpass = 'passed'
27
+
28
+ def set_xfail(self, value: str):
29
+ self.xfail = value
30
+
31
+ def set_xpass(self, value: str):
32
+ self.xpass = value
33
+
34
+
20
35
  class PytestConfig(BaseModel):
21
36
  capture_logs: bool = None
37
+ xfail_status: XFailStatus = None
22
38
 
23
39
  def __init__(self):
24
40
  self.capture_logs = False
41
+ self.xfail_status = XFailStatus()
25
42
 
26
43
  def set_capture_logs(self, capture_logs):
27
44
  self.capture_logs = QaseUtils.parse_bool(capture_logs)
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qase-python-commons
3
- Version: 3.2.3
3
+ Version: 3.2.4
4
4
  Summary: A library for Qase TestOps and Qase Report
5
5
  Author-email: Qase Team <support@qase.io>
6
- Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/master/qase-python-commons
6
+ Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/main/qase-python-commons
7
7
  Classifier: Development Status :: 5 - Production/Stable
8
8
  Classifier: Programming Language :: Python
9
9
  Classifier: Intended Audience :: Developers