Skip to content

Commit

Permalink
update interpolate_test.py to check for specific warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeceglie committed Nov 1, 2023
1 parent 652d3be commit f5f512e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdtools/test/interpolate_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,6 @@ def test_interpolate_warning(test_df, df_target_index, df_expected_result):
with pytest.warns(None) as record:
interpolate(test_df, df_target_index, pd.to_timedelta('15 minutes'),
warning_threshold=0.5)
if record:
if 'Fraction of excluded data' in ';'.join([str(x.message) for x in record.list]):
pytest.fail("normalize.interpolate raised a warning about "
"excluded data even though the threshold was high")

0 comments on commit f5f512e

Please sign in to comment.