コース
Pythonによるテスト入門
上級スキルレベル
更新日 2025/06PythonProgramming4時間16 ビデオ53 演習4,350 XP24,134達成証明書
数千の企業の学習者に愛されています
2名以上のトレーニングをお考えですか?
DataCamp for Businessを試すコース説明
前提条件
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.
Pythonによるテスト入門
コース完了 19百万人を超える学習者と一緒にPythonによるテスト入門を今日から始めましょう!
DataCamp for Mobileでデータスキルを磨きましょう
モバイル コースと毎日の 5 分間のコーディング チャレンジで、外出先でも進歩できます。