online shop promotions: fix bug
online shop promotions: fix bug: a task in smol-software-harbor (Harbor dataset). A customer whose basket was exactly EUR 30.00 could not use a "EUR 5 off from EUR 30" coupon ( test min spend fails). Reaching the minimum spend is enough. Fix apply coupon in promos/engine.py and run python3 -m…
The task
A customer whose basket was exactly EUR 30.00 could not use a "EUR 5 off from EUR 30" coupon (`test_min_spend` fails). Reaching the minimum spend is enough. Fix `apply_coupon` in `promos/engine.py` and run `python3 -m pytest -q`.
Part of efederici/smol-software-harbor.