6 months ago
6 lines185 B
from budget import report | |
| |
| |
def test_report(capsys): | |
report([{"category": "food", "amount": 3.5}, {"category": "food", "amount": 1.5}]) | |
assert "5.00" in capsys.readouterr().out |
from budget import report | |
| |
| |
def test_report(capsys): | |
report([{"category": "food", "amount": 3.5}, {"category": "food", "amount": 1.5}]) | |
assert "5.00" in capsys.readouterr().out |