🏠 Accueil
基準測試
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 人工智能詞彙表 🔗 Liens Utiles
Hard

Python Unit Test Generator

#python #testing #pytest #coding

Generates unit tests using the pytest framework for a given Python function.

Write comprehensive unit tests using the pytest framework for the following Python function. Include test cases for happy paths, edge cases (empty inputs, None), and expected error handling. Mock any external dependencies if necessary. [PYTHON FUNCTION]: