Skip to content

Commit

Permalink
Fix outdated 6.16 reporting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LadislavVasina1 committed Dec 9, 2024
1 parent 3a7567e commit d3df6cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/foreman/ui/test_reporttemplates.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def test_positive_generate_subscriptions_report_json(
:CaseImportance: Medium
"""
# generate Subscriptions report
with session:
with module_target_sat.ui_session() as session:
file_path = session.reporttemplate.generate(
'Subscription - General Report', values={'output_format': 'JSON'}
)
Expand All @@ -295,6 +295,7 @@ def test_positive_generate_subscriptions_report_json(
'Account number',
'Available',
'Contract number',
'Days Remaining',
'End date',
'ID',
'Name',
Expand Down Expand Up @@ -386,7 +387,7 @@ def test_positive_schedule_generation_and_get_mail(
# make sure postfix daemon is running
target_sat.execute('systemctl start postfix')
# generate Subscriptions report
with session:
with target_sat.ui_session() as session:
session.reporttemplate.schedule(
'Subscription - General Report',
values={
Expand Down Expand Up @@ -426,6 +427,7 @@ def test_positive_schedule_generation_and_get_mail(
'Account number',
'Available',
'Contract number',
'Days Remaining',
'End date',
'ID',
'Name',
Expand Down

0 comments on commit d3df6cf

Please sign in to comment.