Ljudet från det här avsnittet kan vara trasigt.
How to fix it?
OM DETTA AVSNITT
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
Engelsk
USA
I DETTA AVSNITT
SÖK TIDIGARE AVSNITT
Sök efter tidigare avsnitt från Test & Code.
ANDRA EPISODER I DENNA PODCAST
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…
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…
Ansvarsfriskrivning: Podcasten och konstverket som är inbäddat på den här sidan är från Brian Okken, som är dess ägares egendom och inte anslutet till eller godkänt av Listen Notes, Inc.
REDIGERA
Tack för att du hjälper till att hålla databasen över podcaster uppdaterad.