🏠 Home
Benchmark Hub
📊 All Benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List Applications 🎨 Creative Free Pages 🎯 FSACB - Ultimate Showcase 🌍 Translation Benchmark
Models
🏆 Top 10 Models 🆓 Free Models 📋 All Models ⚙️ Kilo Code
Resources
💬 Prompts Library 📖 AI Glossary 🔗 Useful Links
Intermédiaire

Générateur de Tests Python (Pytest)

#python #test #pytest #qa

Écrit des tests unitaires Python clairs avec le framework Pytest.

Voici une fonction Python : [CODE FONCTION] Écris une suite de tests utilisant `pytest`. - Utilise des `assert`. - Teste le cas nominal. - Teste un cas limite (edge case). - Utilise un `@pytest.mark.parametrize` pour tester plusieurs entrées d'un coup.