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

Method test_mocked_call

tests/api_wrapper_test.py:45–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 request.call()
44
45 def test_mocked_call(self):
46 request = FakeApi().create_request(True)
47 request.is_response_valid = MagicMock(return_value=True)
48 request.get_inventory(test='awesome')
49 result = request.call()
50 self.assertTrue(result)
51
52 def test_return_value_is_not_valid(self):
53 api = FakeApi()

Callers

nothing calls this directly

Calls 3

FakeApiClass · 0.90
callMethod · 0.80
create_requestMethod · 0.45

Tested by

no test coverage detected