sas.qtgui.Utilities.Preferences.UnitTesting package¶
Submodules¶
sas.qtgui.Utilities.Preferences.UnitTesting.PreferencesPanelTest module¶
- class sas.qtgui.Utilities.Preferences.UnitTesting.PreferencesPanelTest.DummyPrefWidget(name)¶
Bases:
PreferencesWidget
- __doc__ = None¶
- __init__(self, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags)) None ¶
Initialize self. See help(type(self)) for accurate signature.
- __module__ = 'sas.qtgui.Utilities.Preferences.UnitTesting.PreferencesPanelTest'¶
- _addAllWidgets()¶
A private pseudo-abstract class that children should override. Widgets with their own UI file should pass.
- _restoreFromConfig()¶
A pseudo-abstract class that children should override. Recalls all config values and restores the GUI.
- _toggleBlockAllSignaling(toggle: bool)¶
A pseudo-abstract class that children should override. Toggles signalling for all elements.
- config_params: List[str]¶
- name: str¶
- restart_params: Dict[str, str]¶
- staticMetaObject = PySide6.QtCore.QMetaObject("DummyPrefWidget" inherits "PreferencesWidget": )¶
- class sas.qtgui.Utilities.Preferences.UnitTesting.PreferencesPanelTest.PreferencesPanelTest¶
Bases:
object
- __dict__ = mappingproxy({'__module__': 'sas.qtgui.Utilities.Preferences.UnitTesting.PreferencesPanelTest', 'widget': <function PreferencesPanelTest.widget>, 'data': <function PreferencesPanelTest.data>, 'testDefaults': <function PreferencesPanelTest.testDefaults>, 'testPreferencesInteractions': <function PreferencesPanelTest.testPreferencesInteractions>, 'testPreferencesExtensibility': <function PreferencesPanelTest.testPreferencesExtensibility>, 'testHelp': <function PreferencesPanelTest.testHelp>, 'testPreferencesWidget': <function PreferencesPanelTest.testPreferencesWidget>, '__dict__': <attribute '__dict__' of 'PreferencesPanelTest' objects>, '__weakref__': <attribute '__weakref__' of 'PreferencesPanelTest' objects>, '__doc__': None, '__annotations__': {}})¶
- __doc__ = None¶
- __module__ = 'sas.qtgui.Utilities.Preferences.UnitTesting.PreferencesPanelTest'¶
- __weakref__¶
list of weak references to the object
- data()¶
- testDefaults(widget)¶
Test the freshly-opened panel with no changes made
- testHelp(widget, mocker)¶
- testPreferencesExtensibility(widget)¶
Test ability to add and remove items from the listWidget and stackedWidget
- testPreferencesInteractions(widget)¶
Test the base interactions in window behavior
- testPreferencesWidget(widget, mocker)¶
- widget(qapp)¶