Аудиото на този епизод може да е повредено.
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
Английски
САЩ
В ТОЗИ ЕПИЗОД
ТЪРСЕНЕ на МИНАЛИ ЕПИЗОДИ
Търсене в минали епизоди на Test & Code.
ДРУГИ ЕПИЗОДИ В ТОЗИ ПОДКАСТ
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.
РЕДАКТИРАНЕ
Благодарим Ви, че помогате да поддържаме базата данни за подкастове актуална.