cloudbeat-common 1.2.0__tar.gz → 1.2.1__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 (20) hide show
  1. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/PKG-INFO +1 -1
  2. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/cloudbeat_common.egg-info/PKG-INFO +1 -1
  3. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/src/models.py +1 -1
  4. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/src/reporter.py +2 -2
  5. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/cloudbeat.py +0 -0
  6. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/cloudbeat_common.egg-info/SOURCES.txt +0 -0
  7. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/cloudbeat_common.egg-info/dependency_links.txt +0 -0
  8. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/cloudbeat_common.egg-info/requires.txt +0 -0
  9. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/cloudbeat_common.egg-info/top_level.txt +0 -0
  10. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/setup.cfg +0 -0
  11. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/setup.py +0 -0
  12. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/src/__init__.py +0 -0
  13. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/src/cb.py +0 -0
  14. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/src/client.py +0 -0
  15. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/src/helpers.py +0 -0
  16. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/src/json_util.py +0 -0
  17. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/tests/__init__.py +0 -0
  18. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/tests/conftest.py +0 -0
  19. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/tests/test_reporter.py +0 -0
  20. {cloudbeat_common-1.2.0 → cloudbeat_common-1.2.1}/tests/test_step.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudbeat-common
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: Contains the common types and API client for CloudBeat
5
5
  Home-page: https://cloudbeat.io
6
6
  Author: CBNR Cloud Solutions LTD
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudbeat-common
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: Contains the common types and API client for CloudBeat
5
5
  Home-page: https://cloudbeat.io
6
6
  Author: CBNR Cloud Solutions LTD
@@ -90,7 +90,7 @@ class TestResult:
90
90
 
91
91
  @attrs
92
92
  class TestableResultBase:
93
- id = attrib(default=str(uuid.uuid4()))
93
+ id = attrib(default=Factory(lambda: str(uuid.uuid4())))
94
94
  name = attrib(default=None)
95
95
  display_name = attrib(default=None)
96
96
  description = attrib(default=None)
@@ -141,12 +141,12 @@ class CbTestReporter:
141
141
  ))
142
142
  return case_result
143
143
 
144
- def end_case(self, status=None, failure=None):
144
+ def end_case(self, status=None, failure=None, skip_api=False):
145
145
  case_result: CaseResult = self._context.get("case")
146
146
  if case_result is None:
147
147
  return None
148
148
  case_result.end(status, failure)
149
- if self._api_client:
149
+ if self._api_client and not skip_api:
150
150
  suite_result: SuiteResult = self._context.get("suite")
151
151
  self._api_client.update_case_status(CaseStatusUpdateReq(
152
152
  timestamp=int(time.time() * 1000),