def _setup_ecommerce_client(self, client_mock, total=<NUM_LIT:50>):
dummy_price_details_mock = mock.MagicMock()<EOL>dummy_price_details_mock.return_value = {<EOL>'<STR_LIT>': total,<EOL>}<EOL>price_details_mock = mock.MagicMock()<EOL>method_name = '<STR_LIT>'<EOL>attrs = {method_name: dummy_price_details_mock}<EOL>price_details_mock.configure_mock(**attrs)<EOL>client_mock.return_value = price_details_mock<EOL>
Sets up the Ecommerce API client