Skip to content

Commit

Permalink
Fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
clinton-encord committed Dec 31, 2024
1 parent ee042ae commit 51454cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/objects/test_label_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51454cc

Please sign in to comment.