small naming fix

This commit is contained in:
isidorajovanovic 2024-06-12 12:09:38 +02:00
parent 42abc817a8
commit 3222567f8c
2 changed files with 8 additions and 8 deletions

View File

@ -5,7 +5,7 @@ import re
from io import BytesIO from io import BytesIO
from pathlib import Path from pathlib import Path
from typing import Any from typing import Any
from conftest import branch_coverage from conftest import branch_coverage1
import pytest import pytest
@ -447,15 +447,15 @@ def test_plt_marker() -> None:
jp2_boxid = _binary.i16be(marker) jp2_boxid = _binary.i16be(marker)
if jp2_boxid == 0xFF4F: if jp2_boxid == 0xFF4F:
branch_coverage["1"] = True branch_coverage1["1"] = True
# SOC has no length # SOC has no length
continue continue
elif jp2_boxid == 0xFF58: elif jp2_boxid == 0xFF58:
branch_coverage["2"] = True branch_coverage1["2"] = True
# PLT # PLT
return return
elif jp2_boxid == 0xFF93: elif jp2_boxid == 0xFF93:
branch_coverage["3"] = True branch_coverage1["3"] = True
pytest.fail("SOD without finding PLT first") pytest.fail("SOD without finding PLT first")
hdr = out.read(2) hdr = out.read(2)

View File

@ -3,7 +3,7 @@ from __future__ import annotations
import pytest import pytest
from PIL import Image from PIL import Image
from conftest import branch_coverage from conftest import branch_coverage1
from .helper import ( from .helper import (
assert_image_equal, assert_image_equal,
@ -26,13 +26,13 @@ def rotate(
out = im.rotate(angle, center=center, translate=translate, expand=1) out = im.rotate(angle, center=center, translate=translate, expand=1)
assert out.mode == mode assert out.mode == mode
if angle % 180 == 0: if angle % 180 == 0:
branch_coverage["1"] = True branch_coverage1["1"] = True
assert out.size == im.size assert out.size == im.size
elif im.size == (0, 0): elif im.size == (0, 0):
branch_coverage["2"] = True branch_coverage1["2"] = True
assert out.size == im.size assert out.size == im.size
else: else:
branch_coverage["3"] = True branch_coverage1["3"] = True
assert out.size != im.size assert out.size != im.size