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