Back to lesson

homework/tests/test_orders.py

Code and original product screens keep their original language. The lesson explains them in your selected language.

from src.orders import calc


def test_calc():
    items = [{"type": "book", "price": 100}]
    assert calc(items, False) > 0