Revisiting unit testing and mocking in Python
8y agoen
Source
SnykRevisiting unit testing and mocking in Pythonsnyk.ioThis post covers some higher-level software engineering principles demonstrated in my experience with Python testing over the past year and half. In particular, I want to revisit the idea of patching mock objects in unit tests.
You might also wanna read
Advanced Techniques for Dynamic Python Function Patching at Runtime
This technical blog post explores advanced Python programming techniques for dynamically patching and modifying Python function source code
ericmjl.github.io·10mo ago
Exploring Python's __subclasshook__ and Pattern Matching Edge Cases
The article explores creative and potentially problematic uses of Python's __subclasshook__ feature, particularly how it can be combined wit
Understanding Why Overly Aggressive Mocks Break Later in Software Testing
The article explains why overly aggressive mocking in software testing can appear to work initially but break later. It discusses the rule o
nedbatchelder.com·7mo ago
Python library maintainers should prioritize type-checking tests over source code
This article addresses the growing challenge for Python library maintainers who feel overwhelmed by the increasing number of type checkers (
Dev-Owned Testing: Why It Fails in Practice and Succeeds in Theory
dl.acm.org·5mo ago
Understanding a Subtle Bug in Go's errgroup and the Importance of Testing
The article discusses a subtle bug encountered while working with Go's errgroup in a project called Kratos. The author shares their experien

Comments
Sign in to join the conversation.
No comments yet. Be the first.