hardpy 0.12.0__py3-none-any.whl → 0.12.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.
- hardpy/pytest_hardpy/plugin.py +5 -0
- hardpy/pytest_hardpy/reporter/hook_reporter.py +18 -0
- {hardpy-0.12.0.dist-info → hardpy-0.12.1.dist-info}/METADATA +1 -1
- {hardpy-0.12.0.dist-info → hardpy-0.12.1.dist-info}/RECORD +7 -7
- {hardpy-0.12.0.dist-info → hardpy-0.12.1.dist-info}/WHEEL +0 -0
- {hardpy-0.12.0.dist-info → hardpy-0.12.1.dist-info}/entry_points.txt +0 -0
- {hardpy-0.12.0.dist-info → hardpy-0.12.1.dist-info}/licenses/LICENSE +0 -0
hardpy/pytest_hardpy/plugin.py
CHANGED
|
@@ -424,6 +424,8 @@ class HardpyPlugin:
|
|
|
424
424
|
# update module statuses
|
|
425
425
|
self._results[module_id]["module_status"] = TestStatus.STOPPED
|
|
426
426
|
self._reporter.set_module_status(module_id, TestStatus.STOPPED)
|
|
427
|
+
if self._reporter.get_module_start_time(module_id):
|
|
428
|
+
self._reporter.set_module_stop_time(module_id)
|
|
427
429
|
|
|
428
430
|
# update case statuses
|
|
429
431
|
for module_key, module_value in module_data.items():
|
|
@@ -439,6 +441,9 @@ class HardpyPlugin:
|
|
|
439
441
|
case_id,
|
|
440
442
|
TestStatus.STOPPED,
|
|
441
443
|
)
|
|
444
|
+
if self._reporter.get_case_start_time(module_id, case_id):
|
|
445
|
+
self._reporter.set_case_stop_time(module_id, case_id)
|
|
446
|
+
|
|
442
447
|
self._reporter.update_db_by_doc()
|
|
443
448
|
|
|
444
449
|
def _decode_assertion_msg(
|
|
@@ -202,6 +202,24 @@ class HookReporter(BaseReporter):
|
|
|
202
202
|
"""
|
|
203
203
|
self.set_doc_value(DF.ALERT, alert, statestore_only=True)
|
|
204
204
|
|
|
205
|
+
def get_module_start_time(self, module_id: str) -> int:
|
|
206
|
+
"""Get module start time.
|
|
207
|
+
|
|
208
|
+
Returns:
|
|
209
|
+
int: module time
|
|
210
|
+
"""
|
|
211
|
+
key = self.generate_key(DF.MODULES, module_id, DF.START_TIME)
|
|
212
|
+
return self._statestore.get_field(key)
|
|
213
|
+
|
|
214
|
+
def get_case_start_time(self, module_id: str, case_id: str) -> int:
|
|
215
|
+
"""Get case start time.
|
|
216
|
+
|
|
217
|
+
Returns:
|
|
218
|
+
int: module time
|
|
219
|
+
"""
|
|
220
|
+
key = self.generate_key(DF.MODULES, module_id, DF.CASES, case_id, DF.START_TIME)
|
|
221
|
+
return self._statestore.get_field(key)
|
|
222
|
+
|
|
205
223
|
def update_node_order(self, nodes: dict) -> None:
|
|
206
224
|
"""Update node order.
|
|
207
225
|
|
|
@@ -36,7 +36,7 @@ hardpy/hardpy_panel/frontend/dist/assets/index-xb4M2ucX.js,sha256=eeaZrH0pRpkWVi
|
|
|
36
36
|
hardpy/hardpy_panel/frontend/dist/assets/logo_smol-CK3jE85c.png,sha256=E4K7drvhJCg9HcTpRihOXZhVJVBZ7-W97Se-3tDb46o,14485
|
|
37
37
|
hardpy/hardpy_panel/frontend/dist/assets/splitPathsBySizeLoader-BEs5IL5-.js,sha256=19mgQwGFpV8yOhxvL02RtnpEye_5NIAeHC06_1NdY9E,472
|
|
38
38
|
hardpy/pytest_hardpy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
|
-
hardpy/pytest_hardpy/plugin.py,sha256=
|
|
39
|
+
hardpy/pytest_hardpy/plugin.py,sha256=PZZEwHux79fUJJQshFxSEHbzk0rzDYgshI1VU_xKjNw,19017
|
|
40
40
|
hardpy/pytest_hardpy/pytest_call.py,sha256=NaJHZkaY85bG3gFVGHbIZPOAP761-iezRzUAjursLXA,13132
|
|
41
41
|
hardpy/pytest_hardpy/pytest_wrapper.py,sha256=_eULTqbJhFj0uu3XPplS4WSrI_LJC_ZX2kA5t5YJ49U,5162
|
|
42
42
|
hardpy/pytest_hardpy/db/__init__.py,sha256=G6y13JPh8HaH2O9E3_LTH_bTUVSgiezQFjDGaNIljec,557
|
|
@@ -50,7 +50,7 @@ hardpy/pytest_hardpy/db/schema/__init__.py,sha256=1S73W3PLQt8gX5Y33nbX1JdwLvnrtl
|
|
|
50
50
|
hardpy/pytest_hardpy/db/schema/v1.py,sha256=lWE5jWh5ek43-i4aKO51lflNPoyyzaveV06PP5nKQ3Y,9897
|
|
51
51
|
hardpy/pytest_hardpy/reporter/__init__.py,sha256=rztpM2HlLUpMOvad0JHbZU4Mk8PDDQyCFXLhpLktGQI,322
|
|
52
52
|
hardpy/pytest_hardpy/reporter/base.py,sha256=IGVzKpOTN2uauhrUn3HWTyHhhMQFXAWcOvfo1EzDOkw,2707
|
|
53
|
-
hardpy/pytest_hardpy/reporter/hook_reporter.py,sha256=
|
|
53
|
+
hardpy/pytest_hardpy/reporter/hook_reporter.py,sha256=4i-c2VK7JqJQMv_X4Tzezsu4DdujF-UCwsz69DkWqt8,12523
|
|
54
54
|
hardpy/pytest_hardpy/reporter/runner_reporter.py,sha256=YsK8wrLIulsixePG6WNfC4MagpKfhP5j0CUaXkcfeL0,790
|
|
55
55
|
hardpy/pytest_hardpy/result/__init__.py,sha256=2afpuEuOcxYfIEOwWzsGZe960iQaPVCmsbYujijQg1s,592
|
|
56
56
|
hardpy/pytest_hardpy/result/couchdb_config.py,sha256=ujxyJYM2pdZzi3GZ2Zysbz2_ZeTRN5sQc8AGuzRJm_0,3243
|
|
@@ -69,8 +69,8 @@ hardpy/pytest_hardpy/utils/machineid.py,sha256=6JAzUt7KtjTYn8kL9hSMaCQ20U8liH-zD
|
|
|
69
69
|
hardpy/pytest_hardpy/utils/node_info.py,sha256=BibPo2ltxy-hIUQbaYA2om7x1LNK1JvQtHNC0EKl_9k,5474
|
|
70
70
|
hardpy/pytest_hardpy/utils/progress_calculator.py,sha256=TPl2gG0ZSvMe8otPythhF9hkD6fa6-mJAhy9yI83-yE,1071
|
|
71
71
|
hardpy/pytest_hardpy/utils/singleton.py,sha256=tjUGs48o_vBeVpRsEBZEOTCoCUikpIFmQ1c3rsfymso,948
|
|
72
|
-
hardpy-0.12.
|
|
73
|
-
hardpy-0.12.
|
|
74
|
-
hardpy-0.12.
|
|
75
|
-
hardpy-0.12.
|
|
76
|
-
hardpy-0.12.
|
|
72
|
+
hardpy-0.12.1.dist-info/METADATA,sha256=sXpn-lg9rUJkoIvaKPV7CabYETLy0IX-jQr0JKEJK0Q,3978
|
|
73
|
+
hardpy-0.12.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
74
|
+
hardpy-0.12.1.dist-info/entry_points.txt,sha256=nL2sMkKMScNaOE0IPkYnu9Yr-BUswZvGSrwY-SxHY3E,102
|
|
75
|
+
hardpy-0.12.1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
76
|
+
hardpy-0.12.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|