Unit Tests for {function}
ChatGPT Prompt
Write comprehensive unit tests for the following Python function. Include test cases for normal operation, edge cases, error conditions, and boundary values: [PASTE YOUR FUNCTION HERE]
💡 Pro Tip: Replace placeholders in [BRACKETS] with your specific information for best results.
How to Use This Prompt
- 1Click the copy button above to copy the prompt to your clipboard
- 2Open ChatGPT, Claude, or your preferred AI assistant
- 3Paste the prompt and replace any [PLACEHOLDER TEXT] with your specific details
- 4Review the AI's response and iterate if needed for better results
Related Tags
Related Prompts
Code Review for Python Application
Review the following Python code for best practices, security vulnerabilities, performance optimization, and maintainability. Provide specific recommendations and refactored code examples: [PASTE YOUR CODE HERE]
Code Review for JavaScript Application
Review the following JavaScript code for best practices, security vulnerabilities, performance optimization, and maintainability. Provide specific recommendations and refactored code examples: [PASTE YOUR CODE HERE]
Code Review for TypeScript Application
Review the following TypeScript code for best practices, security vulnerabilities, performance optimization, and maintainability. Provide specific recommendations and refactored code examples: [PASTE YOUR CODE HERE]
Code Review for Java Application
Review the following Java code for best practices, security vulnerabilities, performance optimization, and maintainability. Provide specific recommendations and refactored code examples: [PASTE YOUR CODE HERE]
Code Review for C++ Application
Review the following C++ code for best practices, security vulnerabilities, performance optimization, and maintainability. Provide specific recommendations and refactored code examples: [PASTE YOUR CODE HERE]
API Design for task management
Design a RESTful API for a task management application. Include endpoint definitions, request/response schemas, authentication methods, error handling, and API documentation structure.