aeat.application.filing.testing module

Public fixture helpers for aeat.application.filing.

This module exposes frozen records that structurally satisfy the filing profile/deadline protocols, plus registry-backed draft construction helpers. Tests can exercise application filing workflows without reaching into private builder internals or replacing the production registry schema provider. It deliberately does not expose modelo-specific casilla schemas or formulas.

See also

aeat.application.filing._testing_registry

Registry-backed draft builders re-exported by this facade.

aeat.application.filing.runtime

Production profile and schema-provider wiring used outside tests.

class ModeloTestProfile(**data)[source]

Bases: BaseModel

Frozen aeat.application.filing.ModeloProfile test record.

Only tax_id and display_name are carried because those are the fields the filing application consumes when constructing a aeat.domain.filing.ModeloDraft.

Parameters:
  • tax_id (SubjectTaxId)

  • display_name (str)

tax_id: SubjectTaxId
display_name: str
class ModeloTestDeadlineStatus(**data)[source]

Bases: BaseModel

Frozen aeat.application.filing.DeadlineStatus test record.

Parameters:
due_date: date
is_overdue: bool
class ModeloTestDeadlineChecker(**data)[source]

Bases: BaseModel

Frozen aeat.application.filing.DeadlineChecker test record.

The checker returns the same ModeloTestDeadlineStatus for every (modelo, period) query, which keeps aeat.application.filing.ModeloValidator deadline checks deterministic.

Parameters:

status (ModeloTestDeadlineStatus)

status: ModeloTestDeadlineStatus
check(modelo, period)[source]

Return the configured ModeloTestDeadlineStatus.

The modelo and typed Period inputs are accepted to satisfy aeat.application.filing.DeadlineChecker; this helper intentionally ignores them and returns the configured status.

Return type:

ModeloTestDeadlineStatus

Parameters: