Step 6 - Pytest tutorial: Skipping Tests

preview_player
Показать описание

During refactoring, use pytest's markers to ignore certain breaking tests.

00:00 - Start
00:13 - Get back into "TDD Mode"
00:26 - Start by running all tests
00:34 - Add a failing test for the new feature
00:49 - Temporarily suppress it with "skip"
01:07 - Fix the implementation
01:24 - Remove the marker
01:48 - Improve the typing to allow a tuple
02:15 - Write failing test for second feature, apply the "skip" marker
02:30 - Implement the feature
02:45 - Remove the marker

Рекомендации по теме