"""
Contract Tests - Shared test data helpers.

Used across all endpoint tests to generate consistent test data.
"""

import time


def unique_email(prefix="test"):
    """Generate unique email for test data"""
    return f"{prefix}_{int(time.time() * 1000)}@contract-test.local"


def sample_pet_owner(email=None):
    """Generate sample pet owner data"""
    return {
        "first_name": "Test",
        "last_name": "Usuario",
        "email": email or unique_email("owner"),
        "phone": "1155667788",
        "address": "Av. Santa Fe 1234",
        "geo_latitude": -34.5955,
        "geo_longitude": -58.4166,
    }


SAMPLE_CAT = {
    "name": "TestCat",
    "pet_type": "CAT",
    "is_neutered": False,
}

SAMPLE_DOG = {
    "name": "TestDog",
    "pet_type": "DOG",
    "is_neutered": False,
}

SAMPLE_NEUTERED_CAT = {
    "name": "NeuteredCat",
    "pet_type": "CAT",
    "is_neutered": True,
}
