fixup! WIP
All checks were successful
Run tests / run-tests (push) Successful in 45s

This commit is contained in:
2025-12-09 18:32:04 +09:00
parent f15c748558
commit 45bb31aba0
4 changed files with 4 additions and 3 deletions

View File

@@ -196,7 +196,6 @@ def _user_balance_query(
# trx_subset.c.type_ == TransactionType.THROW_PRODUCT,
# recursive_cte.c.balance + trx_subset.c.amount,
# ),
# Interest adjustment -> balance stays the same
# Penalty adjustment -> balance stays the same
else_=recursive_cte.c.balance,

View File

@@ -179,5 +179,4 @@ def test_product_stock_joint_transaction(sql_session: Session) -> None:
assert product_stock(sql_session, product) == 5 - 3
def test_product_stock_throw_away(sql_session: Session) -> None:
...
def test_product_stock_throw_away(sql_session: Session) -> None: ...

View File

@@ -563,7 +563,9 @@ def test_transaction_log_combined_filter_product_transaction_id_transaction_type
assert len(result) == 2
# NOTE: see the corresponding TODO's above the function definition
def test_transaction_log_filtered_by_user_joint_transactions(sql_session: Session) -> None: ...
def test_transaction_log_filtered_by_user_throw_away_transactions(sql_session: Session) -> None: ...

View File

@@ -325,5 +325,6 @@ def test_user_balance_joint_transactions_changing_penalty(sql_session: Session):
def test_user_balance_joint_transactions_penalty_interest_combined(sql_session: Session):
pass
def test_user_balance_throw_away_products(sql_session: Session):
pass