Skip to content

Commit

Permalink
Minor simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
lhellebr committed Dec 9, 2024
1 parent 34c2beb commit db94305
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/foreman/cli/test_reporttemplates.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,8 @@ def test_positive_generate_report_check_for_injection(
}
)

template = module_target_sat.cli.ReportTemplate.info({'name': name})
with pytest.raises(CLIReturnCodeError) as error:
module_target_sat.cli.ReportTemplate.generate({'name': template['name']})
module_target_sat.cli.ReportTemplate.generate({'name': name})
assert (
"Generating Report template failed for: Value of 'select' passed to load_users must be Symbol or Array of Symbols."
in error.value.stderr
Expand Down

0 comments on commit db94305

Please sign in to comment.