Beispiel #1
0
 def test_get_parameters_no_parameter_files(self):
     """
     rapid-unit: Rapid Client:Remote Execution:Parameters can be recorded and passed via pipeline_instance
     :return:
     :rtype:
     """
     eq_(None, Executor._get_parameters(None, None))
Beispiel #2
0
    def test_get_parameters_valid_parameter_files(self, glob, open_mock):
        """
        rapid-unit: Rapid Client:Remote Execution:Parameters can be recorded and passed via pipeline_instance
        :return:
        :rtype:
        """
        glob.glob.return_value = [""]
        open_mock.return_value.__enter__.return_value.readlines.return_value = ["something=12345"]

        eq_({"something": "12345"}, Executor._get_parameters("", [""]))