r/FastAPI • u/dager003 • Mar 29 '26
feedback request Built something to auto-fix pytest failures — does this actually solve a real problem?
Hey everyone,
Been learning Python seriously for a while
and kept running into the same frustration —
pytest fails, spend 30 minutes figuring out
why, fix it, run again, something else breaks.
So I tried building something to automate
that loop. Spent the last month on it.
It basically:
- Runs pytest on your project
- Tries to fix what's failing
- Reruns to check if fix worked
- Rolls back if it made things worse
Current honest capability:
→ Works well on import errors
→ Handles dependency conflicts
→ Simple logic bugs sometimes
→ Fails on complex multi-file issues
→ Struggles with fixture problems
My question to this community:
Is this actually a problem worth solving?
Do you spend significant time debugging
pytest failures?
And if anyone has a Python project with
failing tests they'd be willing to share —
I'd love to run it through and see what
happens. Would help me understand if this
is useful or not.
Just trying to figure out if I've built something useful or wasted a month
View all comments
Show parent comment
1
u/dager003 Mar 29 '26
That’s fair, and I probably explained it too vaguely.
Right now it’s closer to patch the source code and verify not modifying tests. If it can’t fix something cleanly, it should just fail rather than force a pass.
And yeah, I agree — in codebase, failures should be clear and quick to debug. The cases I kept running into were more around env issues, missing deps, or things that only break when you actually run the full test suite. So I guess I’m not trying to replace good tests or good debugging — more like handling the obvious/repetitive fixes when things are already broken.
Still trying to figure out if that’s actually valuable or not.