Skip to content

Commit 299658f

Browse files
committed
refactor: add type parameter to end_output_group
1 parent f792377 commit 299658f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

robotcode/debugger/debugger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ def start_output_group(self, name: str, attributes: Dict[str, Any], type: Option
646646
),
647647
)
648648

649-
def end_output_group(self, name: str, attributes: Dict[str, Any]) -> None:
649+
def end_output_group(self, name: str, attributes: Dict[str, Any], type: Optional[str] = None) -> None:
650650
if self.group_output:
651651
source = attributes.get("source", None)
652652
line_no = attributes.get("lineno", None)

robotcode/debugger/listeners.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def end_suite(self, name: str, attributes: Dict[str, Any]) -> None:
4444

4545
Debugger.instance().end_suite(name, attributes)
4646

47-
Debugger.instance().end_output_group(name, attributes)
47+
Debugger.instance().end_output_group(name, attributes, "SUITE")
4848

4949
Debugger.instance().send_event(
5050
self,
@@ -82,7 +82,7 @@ def start_test(self, name: str, attributes: Dict[str, Any]) -> None:
8282
def end_test(self, name: str, attributes: Dict[str, Any]) -> None:
8383
Debugger.instance().end_test(name, attributes)
8484

85-
Debugger.instance().end_output_group(name, attributes)
85+
Debugger.instance().end_output_group(name, attributes, "TEST")
8686

8787
Debugger.instance().send_event(
8888
self,
@@ -114,7 +114,7 @@ def end_keyword(self, name: str, attributes: Dict[str, Any]) -> None:
114114
Debugger.instance().end_keyword(name, attributes)
115115

116116
if attributes["type"] in ["KEYWORD", "SETUP", "TEARDOWN"]:
117-
Debugger.instance().end_output_group(name, attributes)
117+
Debugger.instance().end_output_group(name, attributes, attributes.get("type", None))
118118

119119
if attributes["status"] == "FAIL" and attributes.get("source", None):
120120
if self.failed_keywords is None:

0 commit comments

Comments
 (0)