StubIde#
- class ansys.scade.guitools.stubs.StubIde#
Bases:
ansys.scade.guitools.ide.IdeSCADE IDE instantiation for unit tests.
This class stubs most popular functions by storing inputs so that they can be compared with expected data.
It can be sub-classed for specific use-cases.
Overview#
Ignore the call. |
|
Ignore the call. |
|
Ignore the call. |
|
Ignore the call. |
|
Ignore the call. |
|
Stub |
|
Ignore the call. |
|
Ignore the call. |
|
Stub |
|
Stub |
|
Ignore the call. |
|
Ignore the call. |
|
Stub |
|
Stub |
|
Stub |
|
Stub |
|
Ignore the call. |
|
Ignore the call. |
|
Redirect the call to the local log function. |
|
Ignore the call. |
|
Ignore the call. |
|
Ignore the call. |
|
Ignore the call. |
|
Ignore the call. |
|
Ignore the call. |
|
Ignore the call. |
|
Ignore the call. |
|
Ignore the call. |
|
Stub suite.register_decoration. |
|
Ignore the call. |
|
Ignore the call. |
|
Ignore the call. |
|
Stub |
|
Store the current browser as a json file. |
|
Stub suite.set_decoration. |
|
Ignore the call. |
|
Ignore the call. |
|
Ignore the call. |
|
Ignore the call. |
|
Stub |
Stub return scade.selection. |
Import detail#
from ansys.scade.guitools.stubs import StubIde
Property detail#
- property StubIde.selection: List[Any]#
Stub return scade.selection.
Attribute detail#
- StubIde.browser = None#
- StubIde.browser_items: Dict[Any, Any]#
Method detail#
- StubIde.activate(object_: Any)#
Ignore the call.
- StubIde.browser_report(child_object: Any, parent_object: Any = None, expanded: bool = False, user_data: Any = None, name: str = '', icon_file: str = '')#
Stub
scade.browser_report.
- StubIde.command(extension_id: str, command_id: int, command: str = 'activate') str | None#
Ignore the call.
- StubIde.create_browser(name: str, icon_file: str | None = None, keep: bool = False, callback: Callable[[Any, Any], None] = None)#
Stub
scade.create_browser.
- StubIde.create_report(tab_name: str, *header: Tuple[str, int, int], check: bool = False)#
Stub
scade.create_report.
- StubIde.file_save(file_name: str, extension: str = '', directory: str = '', filter: str = '') str#
Ignore the call.
- StubIde.get_active_configuration(project: scade.model.project.stdproject.Project, tool_name: str) scade.model.project.stdproject.Configuration | None#
Stub
scade.get_active_configuration.
- StubIde.get_active_project() scade.model.project.stdproject.Project#
Stub
scade.get_active_project.
- StubIde.get_projects() List[scade.model.project.stdproject.Project]#
Stub
scade.model.project.stdproject.get_roots.
- StubIde.get_sessions() List[scade.model.suite.Session]#
Stub
scade.model.suite.get_roots.
- StubIde.locate_ex(tuples: List[scade.model.suite.Object] | List[Tuple])#
Ignore the call.
- StubIde.message_box(name: str, message: str, style: str = 'ok', icon: str = 'information') int#
Ignore the call.
- StubIde.open_html_view(file: str | List[str], use: str | None = None, delete: bool = False)#
Ignore the call.
- StubIde.output_log(tab_name: str, command: str, path_name: str = '', separator: str = '')#
Ignore the call.
- StubIde.print_ssl(scade_operator: scade.model.suite.Operator, path_name: str, format: str, rotation: int = 0)#
Ignore the call.
- StubIde.register_decoration(name: str, small_icon: str, large_icon: str)#
Stub suite.register_decoration.
- StubIde.register_load_model_callable(callable)#
Ignore the call.
- StubIde.register_terminate_callable(callable)#
Ignore the call.
- StubIde.register_unload_model_callable(callable)#
Ignore the call.
- StubIde.save_browser(path: pathlib.Path)#
Store the current browser as a json file.
- StubIde.set_style(presentation_element: scade.model.suite.PresentationElement, style_name: str)#
Ignore the call.
- StubIde.unset_decoration(object_: scade.model.suite.Object)#
Ignore the call.