MCPcopy
hub / github.com/PokemonGoF/PokemonGo-Bot / FakeApi

Class FakeApi

tests/__init__.py:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23class FakeApi(ApiWrapper):
24 def __init__(self):
25 super(FakeApi, self).__init__(get_fake_conf())
26
27 def create_request(self, return_value='mock return'):
28 request = ApiWrapper.create_request(self)
29 request.can_call = MagicMock(return_value=True)
30 request._call = MagicMock(return_value=return_value)
31 return request
32
33class FakeBot(PokemonGoBot):
34 def __init__(self):

Calls

no outgoing calls