"""Tests para extent_with_padding."""

import os
import sys

sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "..", ".."))

from python.functions.geo.extent_with_padding import extent_with_padding


def test_bbox_cuadrado_con_10_pct():
    result = extent_with_padding((0.0, 0.0, 10.0, 10.0), 0.1)
    assert result == (-1.0, 11.0, -1.0, 11.0)


def test_pad_ratio_cero_no_cambia():
    bounds = (2.0, 3.0, 8.0, 9.0)
    result = extent_with_padding(bounds, 0.0)
    assert result == (2.0, 8.0, 3.0, 9.0)
