diff --git a/tests/unit_tests/test_time_series.py b/tests/unit_tests/test_time_series.py index 0cf75ca46..c40ebe90b 100644 --- a/tests/unit_tests/test_time_series.py +++ b/tests/unit_tests/test_time_series.py @@ -304,9 +304,9 @@ def test_check_rate_is_not_zero_single_frame_pass(): def test_check_rate_is_not_zero_timestamp_is_none_fail(): - time_series = pynwb.TimeSeries(name="test", unit="test_units", data=[1, 2, 3], rate=0.0) + time_series = pynwb.TimeSeries(name="TimeSeriesTestt", unit="n.a.", data=[1, 2, 3], rate=0.0) assert check_rate_is_not_zero(time_series) == InspectorMessage( - message=f"{time_series.name} has a sampling rate value of 0.0Hz but the series has more than one frame.", + message="TimeSeriesTest has a sampling rate value of 0.0Hz but the series has more than one frame.", importance=Importance.BEST_PRACTICE_VIOLATION, check_function_name="check_rate_is_not_zero", object_type="TimeSeries",