Fix the buys in the three-lot and hand-picked tests

This commit is contained in:
ai-bot committed 2026-11-14 16:11:08 +00:00
1 parent 731ebde801
commit a0714abcf2
1 file changed
+2 -2
+2 -2
View File
@@ -160,7 +160,7 @@ class LedgerTestCase(unittest.TestCase):
def test_consuming_across_three_lots(self):
market_id = create_market("Børs_01")
for day, ore in (("2024-01-01", 100), ("2024-02-01", 200), ("2024-03-01", 300)):
create_transaction(market_id=market_id, date=day, leg_in_sats=1, leg_in_ore=ore)
create_transaction(market_id=market_id, date=day, leg_in_sats=1, leg_out_ore=ore)
sale = create_transaction(market_id=market_id, date="2024-04-01",
leg_in_ore=1000, leg_out_sats=3)
ledger.rebuild()
@@ -172,7 +172,7 @@ class LedgerTestCase(unittest.TestCase):
def test_hand_picked_lot_overrides_the_method(self):
market_id = create_market("Børs_01")
bought = [
create_transaction(market_id=market_id, date=day, leg_in_sats=1, leg_in_ore=ore)
create_transaction(market_id=market_id, date=day, leg_in_sats=1, leg_out_ore=ore)
for day, ore in (("2024-01-01", 100), ("2024-02-01", 200), ("2024-03-01", 300))
]
sale = create_transaction(market_id=market_id, date="2024-04-01",