This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user