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
3
u/dager003 Mar 29 '26
I’ve started feeling that too — a failing test usually is telling you something useful. It’s not really the failure itself that bothered me.
For me it was more the repetitive part after that — like you fix one obvious thing, run again, something else pops up, repeat 5–6 times. So I was just trying to speed up that loop a bit, not ignore what the test is telling you.