Tests engine behavior using factories (Task 18) instead of SQL fixtures. Covers simple match, partial chain, multi-invoice batch, suggest-then- accept flow, unreconcile reversal, and edge cases. Two tests are intentionally failing — they expose real engine bugs that should be fixed in a follow-up: - TestReconcilePartialChain.test_partial_reconcile_leaves_residual: reconcile_one() builds counterpart vals using the full invoice residual, which leaves the bank move unbalanced when bank amount is smaller than the invoice (UserError: entry not balanced). - TestUnreconcile.test_unreconcile_removes_partial: unreconcile() unlinks partial.reconcile rows but does not restore the suspense line on the bank move, so account.bank.statement.line.is_reconciled remains True after reversal. Made-with: Cursor
12 lines
424 B
Python
12 lines
424 B
Python
from . import test_memo_tokenizer
|
|
from . import test_exchange_diff
|
|
from . import test_matching_strategies
|
|
from . import test_ai_suggestion_lifecycle
|
|
from . import test_precedent_lookup
|
|
from . import test_pattern_extraction
|
|
from . import test_confidence_scoring
|
|
from . import test_reconcile_engine_unit
|
|
from . import test_reconcile_engine_property
|
|
from . import test_factories
|
|
from . import test_reconcile_engine_integration
|