| Aug | SEP | Oct |
| 28 | ||
| 2019 | 2020 | 2021 |
COLLECTED BY
Collection: Outlinks From Tweets
Full Stack Python
All topics |
Blog |
Supporter's Edition |
@fullstackpython |
Facebook |
What's new?
mock when testing.
Python Mocking 101: Fake It Before You Make It
explains what mocking is and is not, and shows how to use the patch
function to accomplish it in your project.
Revisiting Unit Testing and Mocking in Python
is a follow-up post that expands upon using the patch function
along with dependency injection.
Mocks and Monkeypatching in Python
uses the mock and monkeypatch tools to show how to mock your
test cases.
Mock yourself, not your tests
examines when mocks are necessary and when they are not as useful
so you can avoid them in your test cases.
Mocking Redis & Expiration in Python
is a specific scenario where you would want to test your
Redis-dependent code but prefer to mock it rather than
ensure an installation and connection are present whenever you run
your tests.
Better tests for Redis integrations with redislite
is a great example of how using the right mocking library can clean
up existing hacky testing code and make it more straightforward for
any developer that happens upon the tests in the future.
Software errors are inevitable. Chaos is not. Try Sentry for free.
The most accurate speech-to-text API. Built for Python developers.