def test_count_with_custom_count_path(self): connection = MagicMock() connection.make_request.return_value = {'count': 2} self.assertEqual(OrderShipments.count(connection=connection, is_visible=True), 2) connection.make_request.assert_called_once_with('GET', 'orders/shipments/count', None, {'is_visible': True}, None)
def test_count_with_custom_count_path(self): connection = MagicMock() connection.make_request.return_value = {'count': 2} self.assertEqual( OrderShipments.count(connection=connection, is_visible=True), 2) connection.make_request.assert_called_once_with( 'GET', 'orders/shipments/count', None, {'is_visible': True}, None)