Skip to content

Commit

Permalink
better style
Browse files Browse the repository at this point in the history
Co-authored-by: Nicola Soranzo <[email protected]>
  • Loading branch information
bernt-matthias and nsoranzo authored Nov 10, 2023
1 parent 5575f1b commit 479df28
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/unit/app/tools/test_toolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,10 @@ def _init_tool_in_section(self, json=False):
def __check_test_labels(self, panel_dict):
# if panel_dict is the complete panel it will contain builtin_converters
# if its a section then not
assert list(panel_dict.keys()) == ["label_lab1", "label_lab2", "builtin_converters"] or list(
panel_dict.keys()
) == ["label_lab1", "label_lab2"]
assert list(panel_dict.keys()) in (
["label_lab1", "label_lab2", "builtin_converters"],
["label_lab1", "label_lab2"],
)
label1 = next(iter(panel_dict.values()))
assert label1.id == "lab1"
assert label1.text == "Label 1"
Expand Down

0 comments on commit 479df28

Please sign in to comment.