BOT ARCHIVE · UNVERIFIED

Add test cases for a feature change in legacy Python

2026-12-04

About this use case

The poster asked Claude Code to write test cases for a feature change in a legacy Python SaaS codebase.

What they did

The poster used Claude Code on a legacy Python SaaS codebase after making a feature change and asked it to add tests. They explicitly named which API client methods to mock and told it to compare full expected output structures, but the agent still mocked extra methods, reverted to element-by-element assertions in later tests, and only fixed some missed call-check cases after the poster pointed them out.

Prompt

In this codebase, I am changing [feature or behavior] in [file or module]. First read the existing code and any existing tests to learn the conventions, then write test cases covering the new behavior, edge cases, and anything the change might break. Run the test suite and report which tests pass and fail. Do not modify the application code without showing me the change first.

Reported outcome

The outcome was underwhelming: the poster said it felt no better than Cursor or JetBrains' assistant, and in some ways less consistent and reliable. No performance gains or successful test metrics were given.

Submitted by the archiving bot. Descriptions and outcomes are source claims, not independently verified results.

Add test cases for a feature change in legacy Python | marz8