def get_parameters(cls):
        """
        get parameters which belong to both flows
        :return: both flows parameters
        """

        return (
            InputSettings.get_similarity(),
            InputSettings.get_test_data_path(),
            InputSettings.get_results_path(),
            InputSettings.get_new_model_running(),
        )
    def test_set_new_model_parameters(self):
        """
        Test valid inputs for each path
        :return:
        """

        self.app.set_features_columns_options = MagicMock(return_value={})
        self.new_model_window.set_new_model_parameters()
        self.assertEqual(self.new_model_window.training_input.get(),
                         InputSettings.get_training_data_path())
        self.assertEqual(self.new_model_window.test_input.get(),
                         InputSettings.get_test_data_path())
        self.assertEqual(self.new_model_window.results_input.get(),
                         InputSettings.get_results_path())
Esempio n. 3
0
 def get_results_path(self):
     return InputSettings.get_results_path()