Maintain the Stock Report

Copy README.txt, stock_report.py, test_stock_report.py, stock.csv and
handover-stock.csv into a new practice folder. Open a terminal there.
Use Python 3.10 or newer and Git. Check them with python3 --version and
git --version. On Windows, use py, or use python if that is the command
from your setup lesson. Every Git command
works in this practice folder on your computer.
If Git is missing, follow Install Git in setup/install-python-packages.txt
in the workbook, then reopen the terminal and repeat git --version.

The ticket
A stock volunteer can see the Hooks total, but Gloves are missing from
the report when the count is zero. A named item with zero units needs a
line in the report so the volunteer knows to restock it. The export has
item and quantity columns. Quantities are whole numbers zero or higher.
The tool should skip blank item names and add counts for repeated items.

1. Save a baseline
   If you already saved the baseline in the diff lesson, use that same
   practice folder and continue with step 2.
   git init
   git config user.name "Python Learner"
   git config user.email learner@example.invalid
   git config commit.gpgsign false
   git add README.txt stock_report.py test_stock_report.py stock.csv handover-stock.csv
   git commit -m "Record starter stock report"
   git status --short
   A blank result means the folder matches your snapshot.

2. Reproduce the ticket and write the test first
   python3 -B stock_report.py stock.csv
   python3 -B -m unittest -v test_stock_report
   The report shows Hooks: 5. Write down the missing line you expected.
   The tests should report one passing test and one skipped test. The -B
   option keeps Python from writing bytecode cache files in this folder.

   Edit test_includes_zero_quantity in test_stock_report.py. Replace its
   skip with a StringIO fixture using the header and one affected row.
   Use self.assertEqual to check the totals returned by totals_from.
   Run the test command again. Look for FAIL on your new case and check
   that the assertion shows the missing item. Record that result.

3. Repair and review
   Make the smallest change to stock_report.py that fixes the ticket.
   Rerun both commands in step 2. Both tests should pass and the report
   should include Gloves: 0. Compare the Hooks result with your baseline.

   git status --short
   git diff -- stock_report.py test_stock_report.py
   Read the removed and added lines. Check that the changes match your
   test and the problem in the ticket.
   git add stock_report.py test_stock_report.py
   git commit -m "Keep zero stock in the report"
   git log --oneline -2
   git show HEAD -- stock_report.py test_stock_report.py
   git status --short

4. Hand over
   Ask someone to try the report on handover-stock.csv or a fictional
   export they supply. In this folder the workbook case runs with
   python3 -B stock_report.py handover-stock.csv
   Agree on the expected totals before running the command. Give the
   next maintainer the failing and passing test results, the fix commit
   ID, and the input, command and observed output from the handover.
