fixup! WIP

This commit is contained in:
2025-12-09 15:46:46 +09:00
parent cec91d923c
commit 16be0f0fbe
5 changed files with 79 additions and 36 deletions

View File

@@ -25,13 +25,13 @@ def test_current_penalty_with_history(sql_session: Session) -> None:
transactions = [
Transaction.adjust_penalty(
time=datetime(2023, 10, 1, 10, 0, 0),
penalty_threshold=200,
penalty_threshold=-200,
penalty_multiplier_percent=150,
user_id=user.id,
),
Transaction.adjust_penalty(
time=datetime(2023, 10, 2, 10, 0, 0),
penalty_threshold=300,
penalty_threshold=-300,
penalty_multiplier_percent=200,
user_id=user.id,
),
@@ -39,4 +39,4 @@ def test_current_penalty_with_history(sql_session: Session) -> None:
sql_session.add_all(transactions)
sql_session.commit()
assert current_penalty(sql_session) == (300, 200)
assert current_penalty(sql_session) == (-300, 200)