25 lines
604 B
Python
25 lines
604 B
Python
"""
|
|
Tests for simplified scale strategy configuration.
|
|
|
|
Verifies that UNIFORM_PAD constant is properly defined
|
|
and replaces the old field-specific strategies.
|
|
"""
|
|
|
|
import pytest
|
|
|
|
from shared.bbox.scale_strategy import UNIFORM_PAD
|
|
|
|
|
|
class TestUniformPad:
|
|
"""Tests for UNIFORM_PAD constant."""
|
|
|
|
def test_uniform_pad_is_integer(self):
|
|
assert isinstance(UNIFORM_PAD, int)
|
|
|
|
def test_uniform_pad_value_is_15(self):
|
|
"""15px at 150 DPI provides ~2.5mm real-world padding."""
|
|
assert UNIFORM_PAD == 15
|
|
|
|
def test_uniform_pad_is_positive(self):
|
|
assert UNIFORM_PAD > 0
|