|
41 | 41 |
|
42 | 42 | DEFAULT_BINARY_FILE_TYPE = "application/octet-stream" |
43 | 43 | TRUNCATION_SIGN = "...'" |
44 | | -REMOVED_KEYWORD_DATA_LOG = "Keyword data removed using --removeKeywords option." |
45 | 44 | REMOVED_KEYWORD_CONTENT_LOG = "Content removed using the --remove-keywords option." |
46 | 45 | REMOVED_WKUS_KEYWORD_LOG = "{number} failing items removed using the --remove-keywords option." |
47 | 46 | REMOVED_FOR_WHILE_KEYWORD_LOG = "{number} passing items removed using the --remove-keywords option." |
@@ -422,23 +421,11 @@ def end_suite(self, _: Optional[str], attributes: Dict, ts: Optional[Any] = None |
422 | 421 | :param ts: Timestamp(used by the ResultVisitor) |
423 | 422 | """ |
424 | 423 | suite = self._remove_current_item().update(attributes) |
425 | | - if suite.remove_data and attributes["status"] == "FAIL": |
426 | | - self._post_skipped_keywords(suite) |
427 | 424 | logger.debug(f"ReportPortal - End Suite: {suite.robot_attributes}") |
428 | 425 | self.service.finish_suite(suite=suite, ts=ts) |
429 | 426 | if attributes["id"] == MAIN_SUITE_ID: |
430 | 427 | self.finish_launch(attributes, ts) |
431 | 428 |
|
432 | | - def _log_data_removed(self, item_id: str, timestamp: str, message: str) -> None: |
433 | | - msg = LogMessage(message) |
434 | | - msg.level = "DEBUG" |
435 | | - msg.item_id = item_id |
436 | | - msg.timestamp = timestamp |
437 | | - self.__post_log_message(msg) |
438 | | - |
439 | | - def _log_keyword_data_removed(self, item_id: str, timestamp: str) -> None: |
440 | | - self._log_data_removed(item_id, timestamp, REMOVED_KEYWORD_DATA_LOG) |
441 | | - |
442 | 429 | @check_rp_enabled |
443 | 430 | def start_test(self, name: str, attributes: Dict, ts: Optional[Any] = None) -> None: |
444 | 431 | """Start a new test case at the ReportPortal. |
@@ -477,6 +464,13 @@ def end_test(self, _: Optional[str], attributes: Dict, ts: Optional[Any] = None) |
477 | 464 | self._remove_current_item() |
478 | 465 | self.service.finish_test(test=test, ts=ts) |
479 | 466 |
|
| 467 | + def _log_data_removed(self, item_id: str, timestamp: str, message: str) -> None: |
| 468 | + msg = LogMessage(message) |
| 469 | + msg.level = "DEBUG" |
| 470 | + msg.item_id = item_id |
| 471 | + msg.timestamp = timestamp |
| 472 | + self.__post_log_message(msg) |
| 473 | + |
480 | 474 | def _log_keyword_content_removed(self, item_id: str, timestamp: str) -> None: |
481 | 475 | self._log_data_removed(item_id, timestamp, REMOVED_KEYWORD_CONTENT_LOG) |
482 | 476 |
|
@@ -572,7 +566,7 @@ def end_keyword(self, _: Optional[str], attributes: Dict, ts: Optional[Any] = No |
572 | 566 | if self._remove_all_keyword_content: |
573 | 567 | self._log_keyword_content_removed(kwd.rp_item_id, kwd.start_time) |
574 | 568 | elif not self._remove_data_passed_tests: |
575 | | - self._log_keyword_data_removed(kwd.rp_item_id, kwd.start_time) |
| 569 | + self._log_keyword_content_removed(kwd.rp_item_id, kwd.start_time) |
576 | 570 |
|
577 | 571 | self._remove_current_item() |
578 | 572 | if not kwd.posted: |
|
0 commit comments