Use the seeded bank and the right shortfall

This commit is contained in:
ai-bot committed 2026-11-15 18:32:46 +00:00
1 parent b77d8f80e0
commit da5d52a8cb
1 file changed
+2 -2
+2 -2
View File
@@ -327,10 +327,10 @@ class LedgerTestCase(unittest.TestCase):
to_market_id=destination, transfer_group="group-1")
with self.assertRaises(ledger.LedgerError) as caught:
ledger.rebuild()
self.assertIn("10 000 kr", str(caught.exception))
self.assertIn("100 000 kr", str(caught.exception))
def test_the_bank_stays_at_zero(self):
bank = create_market("Bank", kind="other", taxable=0)
bank = int(database.get_setting("bank_market_id"))
# One row with both kroner legs, as the server writes an admin_cost.
cost = create_transaction(market_id=bank, date="2024-05-01", type="admin_cost",
leg_out_ore=50000, leg_in_ore=50000)