Software Testing, Software Development, DevOps, Developer, Software Engineering.
to true. By using a fake object with a constant predictable behavior, we eliminate dependencies on external systems that might introduce flakiness into our test. The test then becomes more deterministic as it always expects true from the fake service. Is it a good practice? Of course it is. Mock