<frozen site>:101: RuntimeWarning: Unexpected value in sys.prefix, expected /home/konkan/development/showcase/errexplain/.venv, got /home/konkan/development/showcase/errexplain/examples/pyapp/../../.venv
<frozen site>:101: RuntimeWarning: Unexpected value in sys.exec_prefix, expected /home/konkan/development/showcase/errexplain/.venv, got /home/konkan/development/showcase/errexplain/examples/pyapp/../../.venv
============================= test session starts ==============================
platform linux -- Python 3.14.2, pytest-9.1.1, pluggy-1.7.0
rootdir: /home/konkan/development/showcase/errexplain
configfile: pyproject.toml
plugins: anyio-4.15.1
collected 1 item

test_inventory.py F

=================================== FAILURES ===================================
_______________________ test_total_cost_applies_quantity _______________________

    def test_total_cost_applies_quantity():
        items = [{"sku": "A", "qty": 3}]
>       assert total_cost(items, {"A": 2.0}) == 7.0
E       AssertionError: assert 6.0 == 7.0
E        +  where 6.0 = total_cost([{'sku': 'A', 'qty': 3}], {'A': 2.0})

test_inventory.py:6: AssertionError
=========================== short test summary info ============================
FAILED test_inventory.py::test_total_cost_applies_quantity - AssertionError: ...
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
============================== 1 failed in 0.02s ===============================
