示例#1
0
    def test_running_record_delete(self):
        """Test case for running_record_delete

        Delete an existing running record.
        """
        body = DeleteAccount()
        response = self.client.open('/running_record',
                                    method='DELETE',
                                    data=json.dumps(body),
                                    content_type='application/json')
        self.assert200(response,
                       'Response body is : ' + response.data.decode('utf-8'))
    def test_online_info_delete(self):
        """Test case for online_info_delete

        Delete existing online info.
        """
        body = DeleteAccount()
        response = self.client.open('/online_info',
                                    method='DELETE',
                                    data=json.dumps(body),
                                    content_type='application/json')
        self.assert200(response,
                       'Response body is : ' + response.data.decode('utf-8'))
示例#3
0
def accounts_delete(body):  # noqa: E501
    """Delete an existing account.

     # noqa: E501

    :param body: Only contain id or id list.
    :type body: dict | bytes

    :rtype: None
    """
    if connexion.request.is_json:
        body = DeleteAccount.from_dict(connexion.request.get_json())  # noqa: E501
    return 'do some magic!'