Skip to content

Commit

Permalink
skip checking deprecation warnings in all reports.
Browse files Browse the repository at this point in the history
  • Loading branch information
desilinguist committed Aug 2, 2020
1 parent 06eb80f commit faf1e5e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions rsmtool/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,13 @@ def check_run_evaluation(source,
if consistency:
check_consistency_files_exist(output_files, experiment_id)

check_report(html_report)
check_report(html_report, raise_warnings=False)

# we want to ignore deprecation warnings for RSMEval, so we remove
# them from the list; then, we make sure that there are no other warnings
warning_msgs = collect_warning_messages_from_report(html_report)
warning_msgs = [msg for msg in warning_msgs if 'DeprecationWarning' not in msg]
assert_equal(len(warning_msgs), 0)


def check_run_comparison(source,
Expand Down Expand Up @@ -384,7 +390,13 @@ def check_run_summary(source,
if exists(expected_output_file):
check_file_output(output_file, expected_output_file)

check_report(html_report)
check_report(html_report, raise_warnings=False)

# we want to ignore deprecation warnings for RSMSummarize, so we remove
# them from the list; then, we make sure that there are no other warnings
warning_msgs = collect_warning_messages_from_report(html_report)
warning_msgs = [msg for msg in warning_msgs if 'DeprecationWarning' not in msg]
assert_equal(len(warning_msgs), 0)


def do_run_experiment(source,
Expand Down

0 comments on commit faf1e5e

Please sign in to comment.