fix: normalize legacy valuation currency comparison
This commit is contained in:
@@ -439,7 +439,12 @@ def test_legacy_lowercase_krw_account_currency_selects_normalized_valuation(tmp_
|
||||
)
|
||||
with sqlite3.connect(path) as conn:
|
||||
conn.execute("UPDATE accounts SET currency='krw' WHERE id=?", (account,))
|
||||
conn.execute("UPDATE account_valuations SET currency='krw' WHERE account_id=?", (account,))
|
||||
selected = service.select_account_valuation(
|
||||
account, "2026-06-30", currency="KRW", db_path=path,
|
||||
)
|
||||
report = service.get_asset_snapshot_report("2026-06-30", db_path=path)
|
||||
assert selected["valuation"]["amount"] == 100
|
||||
assert report["total_assets"] == 100
|
||||
assert report["excluded_items"] == []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user