I am trying to temporarily prevent stream_django from making any remote API calls for offline development and testing purposes.
What is the easiest way to completely disable remote connections to the upstream API servers?
I found feed_manager.disable_model_tracking() which seems to prevent Activity updates, but it doesn't prevent all upstream calls (feed_manager.follow_user()
for example).
stream_django allows you to use a custom feed manager class via the
STREAM_FEED_MANAGER_CLASS
Django setting; that's probably the simplest way to skip follow/unfollow requests.Another approach, perhaps more powerful (and complex) is to use the mock library to stub the manager or similar approach.