🏠 होम
बेंचमार्क
📊 सभी बेंचमार्क 🦖 डायनासोर v1 🦖 डायनासोर v2 ✅ टू-डू लिस्ट ऐप्स 🎨 रचनात्मक फ्री पेज 🎯 FSACB - अल्टीमेट शोकेस 🌍 अनुवाद बेंचमार्क
मॉडल
🏆 टॉप 10 मॉडल 🆓 मुफ्त मॉडल 📋 सभी मॉडल ⚙️ किलो कोड
संसाधन
💬 प्रॉम्प्ट लाइब्रेरी 📖 एआई शब्दावली 🔗 उपयोगी लिंक
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.