이 에피소드의 오디오가 손상되었을 수 있습니다.
How to fix it?
이 에피소드에 관해
Using mock objects during testing in Python.
Anna-Lena joins the podcast to teach us about mocks and using unittest.mock objects during testing.
We discuss:
- the different styles of using mocks
- pros and cons of mocks
- dependency injection
- adapter pattern
- mock hell
- magical universe
- and much more
Special Guest: Anna-Lena Popkes.
Sponsored By:
- Talk Python Training: Online video courses for Python developers
- PyCharm Professional: Try PyCharm Pro for 4 months and learn how PyCharm will save you time. Promo Code: TESTANDCODE22
- HoneyBadger: When bad things happen, it's nice to know that Honeybadger has your back. 30% off for first 6 months when you mention Test & Code Podcast when signing up.
Links:
- Personal webpage of Anna-Lena Popkes
- Magical Universe — Awesome Python features explained using the world of magic
- Test & Code 102: Cosmic Python, TDD, testing and external dependencies — The episode where Harry Percival discusses mocking.
- Talk: Harry Percival - Stop Using Mocks (for a while) - YouTube — Talk: Harry Percival - Stop Using Mocks (for a while)
- unittest.mock
- Autospeccing
- Mock Hell Talk (45 min version) Edwin Jung - PyCon 2019
- Mock Hell Talk (30 min version) - Edwin Jung - PyConDE
- PyCon Estonia
- KI macht Schule!
- Talk Python #186 : 100 Days of Python in a Magical Universe
영어
미국
이 팟캐스트의 다른 에피소드
pytest-mock is currently the #3 pytest plugin. pytest-mock is a wrapper around unittest.mock.
In this episode:
Why the pytest-mock plugin is awesome
What is mocking, patching, and monkey patching
What, if any, is the difference between mock, fake, spy, stub.
Why we might need these in testing
Som…
Markdown reports as either text or markdown tables.Two fun plugins discussed.
Links:
pytest-md-report
pytest-md
Top pytest Plugins
Help support the show AND learn pytest:
The Complete pytest course is now a bundle, with each part available separately.
pytest Primary Power teaches the super pow…
pytest-repeat is a pytest plugin that makes it easy to repeat a single test, or multiple tests, a specific number of times.
Note: This was an April Fools attempt, so the statement ..."Unfortunately, it doesn't seem to work with Python 3.14, even though there is no rational reason why it shouldn't…
pytest-html has got to be one of my all time favorite plugins. pytest-html is a plugin for pytest that generates a HTML report for test results. This episode digs into some of the super coolness of pytest-html.
pytest-html
repo readme with screenshot
enhancing reports
pytest-metadata
Help support…
This episode is a replay of a 2021 interview I did with Michael Foord.We lost Michael in January, and I'd like to revisit this interview as a tribute.
Michael Foord was a pivotal figure in the Python community and the creator of the mock library that's now unittest.mock. But he did so much more as…
면책 조항: 이 페이지에 포함된 팟캐스트와 작품은 Brian Okken에서 가져온 것입니다. 이 팟캐스트는 소유자의 재산이며 Listen Notes, Inc.와 제휴하거나 보증하지 않습니다.