def test_cli_folder(self, mock): args = parse_args( ['-f', f'{root}/samples/stackdriver', '-b', self.eb_policy]) all_reports = cli(args) len_first_report = len(all_reports[self.slo_config]) self.assertIn(self.slo_config, all_reports.keys()) self.assertEqual(len_first_report, 4)
def test_cli_no_config(self): args = parse_args([ '-f', f'{root}/samples', '-b', f'{root}/samples/error_budget_policy.yaml' ]) all_reports = cli(args) self.assertEqual(all_reports, {})
def test_cli(self, mock): args = parse_args(['-f', self.slo_config, '-b', self.eb_policy]) all_reports = cli(args) len_first_report = len(all_reports[self.slo_config]) self.assertIn(self.slo_config, all_reports.keys()) self.assertEqual(len_first_report, 4)