Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Feb 1, 2025
1 parent 7c3f546 commit 81f085a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/test_file_avif.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def test_encoder_codec_invalid(self, tmp_path: Path) -> None:
im.save(test_file, codec="foo")

@skip_unless_avif_decoder("dav1d")
def test_encoder_codec_cannot_encode(self, tmp_path: Path) -> None:
def test_decoder_codec_cannot_encode(self, tmp_path: Path) -> None:
with Image.open(TEST_AVIF_FILE) as im:
test_file = str(tmp_path / "temp.avif")
with pytest.raises(ValueError):
Expand Down Expand Up @@ -479,7 +479,7 @@ def test_decoder_codec_param(self, monkeypatch: pytest.MonkeyPatch) -> None:
assert im.size == (128, 128)

@skip_unless_avif_encoder("rav1e")
def test_decoder_codec_cannot_decode(
def test_encoder_codec_cannot_decode(
self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path
) -> None:
monkeypatch.setattr(AvifImagePlugin, "DECODE_CODEC_CHOICE", "rav1e")
Expand Down

0 comments on commit 81f085a

Please sign in to comment.