Curso
Introducción a las pruebas en Python
AvanzadoNivel de habilidad
Actualizado 6/2025Comienza El Curso Gratis
Incluido conPremium or Teams
PythonProgramming4 h16 vídeos53 Ejercicios4,350 XP23,597Certificado de logros
Crea Tu Cuenta Gratuita
o
Al continuar, aceptas nuestros Términos de uso, nuestra Política de privacidad y que tus datos se almacenen en los EE. UU.Preferido por estudiantes en miles de empresas
¿Formar a 2 o más personas?
Probar DataCamp for BusinessDescripción del curso
¿Por qué pruebas?
Mucha gente escribe código. Algunos consiguen que funcione y sea rentable. Pero a veces, incluso el más inteligente de los mejores programadores comete un error que puede costar millones de dólares. ¿Cómo disminuir la posibilidad de meterse en semejante fiasco? ¿Cómo te aseguras de crear un programa que haga exactamente lo que quieres? La respuesta es muy sencilla: ¡escribe pruebas!Conceptos básicos de pruebas en Python
Durante este viaje, aprenderás los fundamentos de la creación de pruebas en Python. Conocerás cuatro tipos de métodos de prueba de software. Crearás tus propias pruebas para comprobar si el programa o una canalización de datos funciona como se espera antes de pasar a producción. Ya sea un nulo inesperado, una errata en tu conjunto de datos o signos confusos en la ecuación. Puedes, y detectarás esos casos con las pruebas.Pruebas con pytest y unittest
Una vez finalizado el curso, conocerás los tipos de métodos de prueba y podrás elegir los más adecuados para un contexto concreto. También podrás diseñar esas pruebas e implementarlas en Python utilizando las bibliotecas `pytest` y `unittest`.Requisitos previos
Writing Functions in PythonSoftware Engineering Principles in Python1
Creating Tests with pytest
Learn what a test is and how to run the first one of your own with the pytest library! You will get used to the pytest testing framework and the command-line interface. You will also learn how to process specific contexts, like "failed tests" and "skipping the test" with pytest markers.
2
Pytest Fixtures
Learn what a fixture is and how to simplify your code by using it in tests. You will get familiar with the fixture @pytest.fixture decorator and the fixture tools. You will analyze your code to see the "fixture part" in it. Finally, learn how to use teardowns to prevent software failures.
3
Basic Testing Types
Learn what the basic testing types are and their features. Learn about test cases and how they help to implement tests. You will get more skilled with creating test functions and running pytest from CLI in IDE exercises. Finally, you will be able to differentiate the different testing types and create tests for each of them.
4
Writing tests with unittest
In this final chapter, you will meet the unittest framework. First, you will learn basic assertion methods, then its CLI interface, and how to use fixtures. Finally, you will put everything together in the practical examples of data pipelines.
Introducción a las pruebas en Python
Curso completo
Obtener certificado de logros
Añade esta certificación a tu perfil de LinkedIn o a tu currículum.Compártelo en redes sociales y en tu evaluación de desempeño.
Incluido conPremium or Teams
Inscríbete Ahora¡Únete a 19 millones de estudiantes y empieza Introducción a las pruebas en Python hoy mismo!
Crea Tu Cuenta Gratuita
o
Al continuar, aceptas nuestros Términos de uso, nuestra Política de privacidad y que tus datos se almacenen en los EE. UU.