Этот материал находится в платной подписке. Оформи премиум подписку и смотри или слушай Getting started with pytest, а также все другие курсы, прямо сейчас!
Премиум
  1. Урок 1. 00:00:12
    Welcome
  2. Урок 2. 00:00:19
    What is pytest?
  3. Урок 3. 00:01:10
    Why pytest?
  4. Урок 4. 00:00:59
    pytest vs. unittest
  5. Урок 5. 00:04:31
    Topics covered
  6. Урок 6. 00:01:27
    The cards app
  7. Урок 7. 00:00:50
    Prerequisites
  8. Урок 8. 00:00:24
    Meet your instructor
  9. Урок 9. 00:00:40
    The companion book
  10. Урок 10. 00:01:27
    Introducing test functions
  11. Урок 11. 00:03:45
    Setting up our test environment
  12. Урок 12. 00:07:20
    Writing our first tests
  13. Урок 13. 00:03:44
    Running the cards application
  14. Урок 14. 00:03:13
    A dataclass called Card
  15. Урок 15. 00:08:50
    Unit testing the Card class
  16. Урок 16. 00:03:27
    Enhanced assert tracebacks
  17. Урок 17. 00:02:29
    Using pytest.fail() and Exceptions
  18. Урок 18. 00:03:38
    Structuring test functions
  19. Урок 19. 00:02:41
    Using test classes
  20. Урок 20. 00:03:31
    Running a subset of tests
  21. Урок 21. 00:01:22
    Introducing test fixtures
  22. Урок 22. 00:02:31
    Using fixtures to pass test data
  23. Урок 23. 00:06:26
    Using fixtures for setup and teardown
  24. Урок 24. 00:01:31
    Tracing execution with --setup-show
  25. Урок 25. 00:06:15
    Testing cards with database setup and teardown
  26. Урок 26. 00:04:06
    Moving setup and teardown into a fixture
  27. Урок 27. 00:05:05
    Specifying fixture scope
  28. Урок 28. 00:01:16
    Naive fix for test order dependency
  29. Урок 29. 00:04:58
    Using multiple fixture levels
  30. Урок 30. 00:04:58
    Sharing fixtures through conftest.py
  31. Урок 31. 00:03:09
    Finding where fixtures are defined
  32. Урок 32. 00:04:43
    Using builtin fixtures
  33. Урок 33. 00:04:35
    Using multiple fixtures per test
  34. Урок 34. 00:01:39
    Review
  35. Урок 35. 00:00:27
    Introducing test parametrization
  36. Урок 36. 00:01:42
    Manually testing "cards finish"
  37. Урок 37. 00:08:09
    Testing without parametrization
  38. Урок 38. 00:03:04
    Combining tests without parametrization
  39. Урок 39. 00:05:53
    Parametrizing functions with two parameters
  40. Урок 40. 00:03:08
    Parametrizing functions with one parameter
  41. Урок 41. 00:03:31
    Stacking function parameters
  42. Урок 42. 00:04:08
    Fixture parametrization
  43. Урок 43. 00:01:52
    Using multiple parametrized fixtures
  44. Урок 44. 00:03:59
    Using keywords to select test cases
  45. Урок 45. 00:05:22
    Using ids for parameter objects
  46. Урок 46. 00:00:55
    Review
  47. Урок 47. 00:01:03
    Introducing markers
  48. Урок 48. 00:04:03
    Skipping tests with pytest.mark.skip
  49. Урок 49. 00:03:11
    Skipping tests conditionally with pytest.mark.skipif
  50. Урок 50. 00:03:19
    Expecting tests to fail with pytest.mark.xfail
  51. Урок 51. 00:06:45
    Selecting tests with custom markers
  52. Урок 52. 00:02:50
    Using -ra to see reasons for all test outcomes
  53. Урок 53. 00:00:50
    Review
  54. Урок 54. 00:01:13
    Introducing pytest plugins
  55. Урок 55. 00:02:30
    Finding plugins
  56. Урок 56. 00:02:17
    Repeating tests with pytest-repeat
  57. Урок 57. 00:01:28
    Running tests in parallel with pytest-xdist
  58. Урок 58. 00:03:02
    Randomizing test order with pytest-random
  59. Урок 59. 00:01:13
    Review
  60. Урок 60. 00:02:48
    Configuration and other non-test files
  61. Урок 61. 00:05:15
    The non-test files in the cards application
  62. Урок 62. 00:06:30
    Common settings in pytest.ini
  63. Урок 63. 00:01:39
    Using pyproject.toml, tox.ini, or setup.cfg
  64. Урок 64. 00:02:06
    Finding information about all possible settings
  65. Урок 65. 00:03:53
    Avoiding test file name collision with __init__.py
  66. Урок 66. 00:00:53
    Review
  67. Урок 67. 00:02:30
    What we learned and where to get more information