Welcome to payments. billing/ builds the invoices the dashboard shows; the rules are in README.md. Since last week's refactor five tests fail, from four causes. The code is new to you: run the tests, read each failure, f…
Welcome to payments. billing/ builds the invoices the dashboard shows; the rules are in README.md. Since last week's refactor five tests fail, from four causes. The code is new to you: run the tests, read each failure, follow it into the code and fix the cause. Every fix is small. Change the code, not the tests.
You have 40 minutes. The checks are graded one by one, so each failure you fix counts even if the rest is not done. It is open book: read the code and the Python docs freely. The round this is modelled on is usually done without an AI assistant, so try it that way.
test_a_paymenttest_a_refund_reopens_the_amount_duetest_invoices_do_not_share_linestest_overdue_invoices_in_ordertest_not_overdue_on_the_due_daypytest tests/visible passes, with the tests unchanged.Visible test command
pytest tests/visibleThe repository’s own tests. Run all tests includes them, and so does every submission.
Repository
billing-bug-squash-five-failing-tests-four-causes
Changes under src/ are evaluated.