fixup! WIP
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user