feat(tests): Añadido soporte de autenticación con access token en tests GET de todos los módulos de reference_data. Ahora los tests usan un fixture access_token y envían el header Authorization. Módulos actualizados: containers, countries, currency_types, material_types, states, valuation_methods, incoterms, payment_methods, sectors, customs_sections, customs_warehouses, invoice_types, pedimento_codes, pedimento_regimens, code_pedimento_regimens, transport_modes, transport_types.

This commit is contained in:
2025-11-01 17:15:09 -06:00
parent 8a5ada5ca1
commit e70ab22b4e
54 changed files with 1140 additions and 185 deletions

View File

@@ -1,4 +1,5 @@
from pydantic import BaseModel, Field
from pydantic import ConfigDict
class CountryDTO(BaseModel):
m3_key: str = Field(..., min_length=1, max_length=3)
@@ -7,6 +8,5 @@ class CountryDTO(BaseModel):
description_es: str
description_en: str
class Config:
from_attributes = True
model_config = ConfigDict(from_attributes=True)