4.8 • 635 Ratings
🗓️ 21 October 2020
⏱️ 63 minutes
🧾️ Download transcript
Click on a timestamp to play from that location
0:00.0 | We know our test to be relatively independent from other parts of the system. |
0:03.6 | For example, running a test shouldn't generally call a credit card processing API and talk to a database |
0:09.3 | when our goal is just to test the argument validation. |
0:13.2 | And yet, your method that you want to test, it does all three of those things and more. |
0:18.1 | What do you do? |
0:19.0 | Some languages use elaborate dependency passing mechanisms |
0:22.4 | and frameworks that go under the banner of inversion of control and dependency injection. In Python, |
0:28.2 | we do sometimes have that, but it's much more common to just temporarily redefine what those |
0:33.7 | two functions do using patching and mocking. On this episode, we welcome back and Elena Popkas to talk us through the whole spectrum of |
0:42.0 | test doubles, dummies, mocks, and more. |
0:44.6 | This is Talk Python to Me, episode 287 recorded August 24th, 2020. |
0:50.0 | Music Welcome. Welcome to Talk Python to me, a weekly podcast on Python, the language, the libraries, the ecosystem, and the personalities. This is your host, Michael Kennedy. |
1:12.0 | Follow me on Twitter where I'm at M. Kennedy. |
1:14.0 | Keep up with a show and listen to past episodes at talk python.fm. |
1:17.7 | And follow the show on Twitter via at talk python. |
1:20.4 | This episode is brought to you by Linode and Monday.com. |
1:23.9 | Please check out what they're offering during their segments. |
1:25.9 | It really helps support the show. |
1:28.6 | Do you want to learn Python, but you can't bear to subscribe to yet another service? |
1:33.2 | At Talk Python training, we hate subscriptions too. |
1:36.4 | That's why our course bundle gives you full access to the entire library of courses for one fair price. |
1:42.2 | That's right. |
... |
Please login to see the full transcript.
Disclaimer: The podcast and artwork embedded on this page are from Michael Kennedy, and are the property of its owner and not affiliated with or endorsed by Tapesearch.
Generated transcripts are the property of Michael Kennedy and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.
Copyright © Tapesearch 2025.