@fixture
def patch_network_functions(monkeypatch):
 import inbox.actions.backends
 for backend in inbox.actions.backends.module_registry.values():
  for method_name in backend.__all__:
   monkeypatch.setattr(((backend.__name__ + '.') + method_name), (lambda *args, **kwargs: None))

@ fixture def patch_network_functions ( monkeypatch ) : import inbox . actions . backends for backend in inbox . actions . backends . module_registry . values ( ) : for method_name in backend . __all__ : monkeypatch . setattr ( ( ( backend . __name__ + '.' ) + method_name ) , ( lambda * args , ** kwargs : None ) )
monkeypatch syncback functions that actually talk to gmail so that the tests can run faster .