def __init__(self):
        super(PythonInterfacesStartupTest, self).__init__()

        self._app = get_application()

        self._interface_directory = ConfigService.getString('mantidqt.python_interfaces_directory')
        self._interface_scripts = [interface.split("/")[1] for interface in
                                   ConfigService.getString('mantidqt.python_interfaces').split()
                                   if interface.split("/")[1] not in EXCLUDED_SCRIPTS]
    def runTest(self):
        if len(self._interface_scripts) == 0:
            self.fail("Failed to find any python interface scripts.")

        self._qapp = get_application()  # keep QApp reference alive
        try:
            for interface_script in self._interface_scripts:
                self._attempt_to_open_and_close_python_interface(interface_script)
        finally:
            self._qapp = None
    def __init__(self):
        super(FitScriptGeneratorStartupTest, self).__init__()

        self._app = get_application()

        self.ws_name = "WorkspaceName"
        test_workspace = CreateWorkspace(DataX=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16],
                                         DataY=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], NSpec=4, UnitX="Wavelength")
        AnalysisDataService.addOrReplace(self.ws_name, test_workspace)

        self.fsg_model = FitScriptGeneratorModel()
        self.fsg_view = FitScriptGeneratorView(None, FittingMode.SIMULTANEOUS, {"Minimizer": "Levenberg-Marquardt"})
        self.fsg_presenter = FitScriptGeneratorPresenter(self.fsg_view, self.fsg_model, [self.ws_name], 1.0, 3.0)
Example #4
0
 def __init__(self):
     self._qapp = get_application()
    def __init__(self):
        super(CppInterfacesStartupTest, self).__init__()

        self._app = get_application()
        self._interface_manager = InterfaceManager()
        self._cpp_interface_names = UserSubWindowFactory.Instance().keys()