Files
zulip/zerver/tests/test_example.py
Steve Howell 0f8f5fafe1 test_example.py: Add new example with mock.patch.
The original mocking example now uses time_machine, so I slimmed
down a lot of its comments, and then I created another
mocking example so that we still touch on mocking in
terms of mock.patch.

The new method reinforces the pattern of testing both the
sad path and happy path inside the same test.
2025-01-23 16:10:37 -08:00

24 KiB