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_registryRegistry-backed draft builders re-exported by this facade.
aeat.application.filing.runtimeProduction profile and schema-provider wiring used outside tests.
- class ModeloTestProfile(**data)[source]¶
Bases:
BaseModelFrozen
aeat.application.filing.ModeloProfiletest record.Only
tax_idanddisplay_nameare carried because those are the fields the filing application consumes when constructing aaeat.domain.filing.ModeloDraft.- Parameters:
tax_id (SubjectTaxId)
display_name (str)
- tax_id: SubjectTaxId¶
- display_name: str¶
- class ModeloTestDeadlineStatus(**data)[source]¶
Bases:
BaseModelFrozen
aeat.application.filing.DeadlineStatustest record.- due_date: date¶
- is_overdue: bool¶
- class ModeloTestDeadlineChecker(**data)[source]¶
Bases:
BaseModelFrozen
aeat.application.filing.DeadlineCheckertest record.The checker returns the same
ModeloTestDeadlineStatusfor every(modelo, period)query, which keepsaeat.application.filing.ModeloValidatordeadline checks deterministic.- Parameters:
status (ModeloTestDeadlineStatus)
- status: ModeloTestDeadlineStatus¶
- check(modelo, period)[source]¶
Return the configured
ModeloTestDeadlineStatus.The
modeloand typedPeriodinputs are accepted to satisfyaeat.application.filing.DeadlineChecker; this helper intentionally ignores them and returns the configured status.- Return type:
- Parameters: