🏠 Trang chủ
Benchmark
📊 Tất cả benchmark 🦖 Khủng long v1 🦖 Khủng long v2 ✅ Ứng dụng To-Do List 🎨 Trang tự do sáng tạo 🎯 FSACB - Trình diễn cuối cùng 🌍 Benchmark dịch thuật
Mô hình
🏆 Top 10 mô hình 🆓 Mô hình miễn phí 📋 Tất cả mô hình ⚙️ Kilo Code
Tài nguyên
💬 Thư viện prompt 📖 Thuật ngữ AI 🔗 Liên kết hữu ích
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.