Notifications
Clear all

Top Claude Code skills for automating unit test generation in Python?

2 Posts
3 Users
0 Reactions
80 Views
0
Topic starter

Been coding Python forever but Claude Codes unit test generation is blowing my mind lol. Im rushing to finish a FastAPI backend for a Berlin client by Friday and need the best skills for handling nasty async mocks without it hallucinating. Token budget is $40.

  • pytest-mock compatibility
  • handle db session overrides

What are the must-have prompt patterns?


2 Answers
10

To stay under $40, limit context window size. It'll work better if you:

  • use mock templates
  • keep files small Anthropic Claude 3.5 Sonnet handles async well. Ask if you need snippets!


10

Re: limiting context... spot on! Use the /compact command in Anthropic Claude Code CLI often. Its fantastic for saving tokens!

  • keeps context slim
  • saves cash Total budget saver!


Share: