fixup! WIP

This commit is contained in:
2025-12-09 15:30:16 +09:00
parent 0504cc1a1e
commit cec91d923c
8 changed files with 8 additions and 12 deletions

View File

@@ -386,7 +386,9 @@ def test_product_price_joint_transactions(sql_session: Session) -> None:
old_product_price = product_price_
product_price_ = product_price(sql_session, product)
assert product_price_ == old_product_price, "Joint buy transactions should not affect product price"
assert product_price_ == old_product_price, (
"Joint buy transactions should not affect product price"
)
transactions = [
Transaction.add_product(

View File

@@ -140,6 +140,7 @@ def test_negative_product_stock(sql_session: Session) -> None:
# The stock should be negative because we added and bought the product
assert product_stock(sql_session, product) == 1 - 2 - 1
def test_product_stock_joint_transaction(sql_session: Session) -> None:
insert_test_data(sql_session)