sas.qtgui.Perspectives.Invariant.UnitTesting package¶
Submodules¶
sas.qtgui.Perspectives.Invariant.UnitTesting.InvariantDetailsTest module¶
- class sas.qtgui.Perspectives.Invariant.UnitTesting.InvariantDetailsTest.InvariantDetailsTest¶
Bases:
object
Test the Invariant Perspective Window
- __dict__ = mappingproxy({'__module__': 'sas.qtgui.Perspectives.Invariant.UnitTesting.InvariantDetailsTest', '__doc__': 'Test the Invariant Perspective Window', 'widget': <function InvariantDetailsTest.widget>, 'testDefaults': <function InvariantDetailsTest.testDefaults>, 'testOnOK': <function InvariantDetailsTest.testOnOK>, 'testShowDialog': <function InvariantDetailsTest.testShowDialog>, 'testCheckValues': <function InvariantDetailsTest.testCheckValues>, '__dict__': <attribute '__dict__' of 'InvariantDetailsTest' objects>, '__weakref__': <attribute '__weakref__' of 'InvariantDetailsTest' objects>, '__annotations__': {}})¶
- __doc__ = 'Test the Invariant Perspective Window'¶
- __module__ = 'sas.qtgui.Perspectives.Invariant.UnitTesting.InvariantDetailsTest'¶
- __weakref__¶
list of weak references to the object
- testCheckValues(widget)¶
- testDefaults(widget)¶
Test the GUI in its default state
- testOnOK(widget)¶
Test closing dialog
- testShowDialog(widget)¶
- widget(qapp)¶
Create/Destroy the Invariant Details window
sas.qtgui.Perspectives.Invariant.UnitTesting.InvariantPerspectiveTest module¶
- class sas.qtgui.Perspectives.Invariant.UnitTesting.InvariantPerspectiveTest.InvariantPerspectiveTest¶
Bases:
object
Test the Invariant Perspective Window
- __dict__ = mappingproxy({'__module__': 'sas.qtgui.Perspectives.Invariant.UnitTesting.InvariantPerspectiveTest', '__doc__': 'Test the Invariant Perspective Window', 'widget': <function InvariantPerspectiveTest.widget>, 'testDefaults': <function InvariantPerspectiveTest.testDefaults>, 'checkControlDefaults': <function InvariantPerspectiveTest.checkControlDefaults>, 'testOnCalculate': <function InvariantPerspectiveTest.testOnCalculate>, 'testCalculateInvariant': <function InvariantPerspectiveTest.testCalculateInvariant>, 'testUpdateFromModel': <function InvariantPerspectiveTest.testUpdateFromModel>, 'testCheckLength': <function InvariantPerspectiveTest.testCheckLength>, 'testExtrapolationQRange': <function InvariantPerspectiveTest.testExtrapolationQRange>, 'testUpdateFromGui': <function InvariantPerspectiveTest.testUpdateFromGui>, 'testLowGuinierAndPowerToggle': <function InvariantPerspectiveTest.testLowGuinierAndPowerToggle>, 'testHighQToggle': <function InvariantPerspectiveTest.testHighQToggle>, 'testLowQToggle': <function InvariantPerspectiveTest.testLowQToggle>, 'testSetupModel': <function InvariantPerspectiveTest.testSetupModel>, 'testSetupMapper': <function InvariantPerspectiveTest.testSetupMapper>, 'testSerialization': <function InvariantPerspectiveTest.testSerialization>, 'testLoadParams': <function InvariantPerspectiveTest.testLoadParams>, 'testRemoveData': <function InvariantPerspectiveTest.testRemoveData>, 'checkFakeDataState': <function InvariantPerspectiveTest.checkFakeDataState>, '__dict__': <attribute '__dict__' of 'InvariantPerspectiveTest' objects>, '__weakref__': <attribute '__weakref__' of 'InvariantPerspectiveTest' objects>, '__annotations__': {}})¶
- __doc__ = 'Test the Invariant Perspective Window'¶
- __module__ = 'sas.qtgui.Perspectives.Invariant.UnitTesting.InvariantPerspectiveTest'¶
- __weakref__¶
list of weak references to the object
- checkControlDefaults(widget)¶
- checkFakeDataState(widget)¶
Ensure the state is constant every time the fake data set loaded
- testCalculateInvariant(widget, mocker)¶
- testCheckLength(widget, mocker)¶
- Test validator for number of points for extrapolation
Error if it is larger than the distribution length
- testDefaults(widget)¶
Test the GUI in its default state
- testExtrapolationQRange(widget)¶
Test changing the extrapolated Q-range
- testHighQToggle(widget)¶
Test enabling / disabling for check box High Q extrapolation
- testLoadParams(widget)¶
- testLowGuinierAndPowerToggle(widget)¶
- testLowQToggle(widget)¶
Test enabling / disabling for check box Low Q extrapolation
- testOnCalculate(widget, mocker)¶
Test onCompute function
- testRemoveData(widget)¶
- testSerialization(widget)¶
Serialization routines
- testSetupMapper(widget)¶
- testSetupModel(widget)¶
Test default settings of model
- testUpdateFromGui(widget)¶
- testUpdateFromModel(widget)¶
update the globals based on the data in the model
- widget(qapp, mocker)¶
Create/Destroy the Invariant Perspective Window