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

View File

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