-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Criar classes de exception #56
Comments
Me puedes dar un pouito mas de explicacion de lo que necesitas? Puedo ayudar agregar mas |
Hola, @Physsix27 No enumeramos todas las exceptions que queremos escribir, pero tenemos un ejemplo. En el test_file tenemos la function Se tenemos la custom exception podriamos escribir |
Ok, deja ver si entiendo, quieres que escriba un custom Mi Idioma: Espanol |
Puedes darme una descripcion de lo que hara el |
…s/test_file.py
Hey @itepifanio dejame saber si necesito cambiar algo de mi PR para poder darle PR #95 |
Feature
Hoje tratamos as exceptions de forma bem geral, porém poderíamos criar classes de exceção para nos auxiliarmos a lidar com os erros. Isso ajuda bastante nos testes, tornando-os mais assertivos, visto que o unittest tem a função
assertRaises()
The text was updated successfully, but these errors were encountered: