mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-30 05:03:54 +00:00
[Feature] - OpenBB Platform CLI Unit tests (#6397)
* Unit test batch 1 * CLI controller * Test batch 3 * Test batch 4 * Test batch 5 * clean some workflows and setup actions * test * rename wfs * rename * update action * Skip * fix cli tests --------- Co-authored-by: Henrique Joaquim <henriquecjoaquim@gmail.com> Co-authored-by: Diogo Sousa <montezdesousa@gmail.com> Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
This commit is contained in:
@@ -106,20 +106,6 @@ class MenuText:
|
||||
else:
|
||||
self.menu_text += text
|
||||
|
||||
def add_section(
|
||||
self, text: str, description: str = "", leading_new_line: bool = False
|
||||
):
|
||||
"""Append raw text (without translation)."""
|
||||
spacing = (self.CMD_NAME_LENGTH - len(text) + self.SECTION_SPACING) * " "
|
||||
if description:
|
||||
text = f"{text}{spacing}{description}\n"
|
||||
|
||||
if leading_new_line:
|
||||
self.menu_text += "\n" + text
|
||||
|
||||
else:
|
||||
self.menu_text += text
|
||||
|
||||
def add_info(self, text: str):
|
||||
"""Append information text (after translation)."""
|
||||
self.menu_text += f"[info]{text}:[/info]\n"
|
||||
|
||||
Reference in New Issue
Block a user