def test_get_stats_no_stats_files(self): """ rapid-unit: Rapid Client:Remote Execution:Statistics can be recorded per pipeline_instance :return: :rtype: """ eq_(None, Executor._get_stats(None, None))
def test_get_stats_valid_stats_files(self, glob, open_mock): """ rapid-unit: Rapid Client:Remote Execution:Statistics can be recorded per 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_stats("", [""]))