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

Method test_api_direct_call

tests/api_wrapper_test.py:119–123  ·  view source on GitHub ↗
(self, mock_method)

Source from the content-addressed store, hash-verified

117
118 @patch('pokemongo_bot.api_wrapper.ApiRequest.is_response_valid')
119 def test_api_direct_call(self, mock_method):
120 mock_method.return_value = True
121
122 result = FakeApi().get_inventory()
123 self.assertEqual(result, 'mock return')

Callers

nothing calls this directly

Calls 1

FakeApiClass · 0.90

Tested by

no test coverage detected