From 51454ccc74343f1d08b66861c962ada05fc2c0bf Mon Sep 17 00:00:00 2001 From: Clinton Wee Date: Tue, 31 Dec 2024 18:33:04 +0800 Subject: [PATCH] Fix ruff --- tests/objects/test_label_structure.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/objects/test_label_structure.py b/tests/objects/test_label_structure.py index 593dd25a..9ba395a9 100644 --- a/tests/objects/test_label_structure.py +++ b/tests/objects/test_label_structure.py @@ -1134,8 +1134,10 @@ def test_audio_classification_exceed_max_frames(ontology, empty_audio_label_row: with pytest.raises(LabelRowError) as e: classification_instance.set_for_frames(frames=5000) - assert e.value.message == ("The supplied frame of `5000` is not within the acceptable bounds of `0` to `1`. " - "Note: for non-geometric data (e.g. AUDIO and PLAIN_TEXT), the entire file only has 1 frame.") + assert e.value.message == ( + "The supplied frame of `5000` is not within the acceptable bounds of `0` to `1`. " + "Note: for non-geometric data (e.g. AUDIO and PLAIN_TEXT), the entire file only has 1 frame." + ) range_list = classification_instance.range_list assert len(range_list) == 1