- tests that break during valid refactoring
When tests fail whenever the code changes, they are change detector tests. This problem occurs because mocking tests implementation, but not behavior.
- a type of software testing that uses known input and produces an expected output
- entry points to intercept pytest behavior at certain points and make changes
- calculated by dividing the total number of lines run divided by the total lines of code
- replacing a part of a system with mock objects
Mock objects are typically intended to be objects that are used in place of the real implementation. Mock objects are sometimes called test doubles, spies, fakes, or stubs.
- the interface to be mocked changes, while the mock in the test code doesn't
- a technique used to dynamically update the behavior of a piece of code at run-time
- Python debugger
It is part of the Python standard library.
- "You Aren't Gonna Need It"
"Always implement things when you actually need them, never when you just foresee that you need them"