Refactor code for improved readability and consistency across multiple files
Gitea Actions CI / detect (push) Successful in 3s
Gitea Actions CI / Compose & nginx validation (push) Failing after 14s
Gitea Actions CI / Frontend (lint / type / test / build) (push) Successful in 45s
Gitea Actions CI / Backend (lint / type / test / build) (push) Successful in 1m31s
Gitea Actions CI / detect (push) Successful in 3s
Gitea Actions CI / Compose & nginx validation (push) Failing after 14s
Gitea Actions CI / Frontend (lint / type / test / build) (push) Successful in 45s
Gitea Actions CI / Backend (lint / type / test / build) (push) Successful in 1m31s
This commit is contained in:
@@ -163,9 +163,7 @@ def test_revert_removes_created_savings_transfer(db: Session) -> None:
|
||||
assert db.query(Operation).filter_by(space_id=space.id).count() == 0
|
||||
assert db.query(SourceRecordLink).filter_by(space_id=space.id).count() == 0
|
||||
assert document.status == "ready"
|
||||
source = (
|
||||
db.query(SourceRecord).filter_by(parse_run_id=document.active_parse_run_id).one()
|
||||
)
|
||||
source = db.query(SourceRecord).filter_by(parse_run_id=document.active_parse_run_id).one()
|
||||
# Repeated parse gives the same decision: the hint survives revert.
|
||||
assert source.review_decision == "savings_transfer"
|
||||
|
||||
@@ -350,9 +348,9 @@ def test_unresolved_hold_counts_and_month_filter(db: Session) -> None:
|
||||
|
||||
unresolved = service.unresolved_holds(db, space_id=space.id, document=document)
|
||||
assert len(unresolved) == 2
|
||||
assert service.unresolved_hold_counts(
|
||||
db, space_id=space.id, document_ids=[document.id]
|
||||
) == {document.id: 2}
|
||||
assert service.unresolved_hold_counts(db, space_id=space.id, document_ids=[document.id]) == {
|
||||
document.id: 2
|
||||
}
|
||||
may = service.parse_month_filter("2026-05")
|
||||
assert may == (2026, 5)
|
||||
may_holds = [h for h in unresolved if h.occurred_on and h.occurred_on.month == 5]
|
||||
|
||||
Reference in New Issue
Block a user