Exemplo n.º 1
0
def test_delete_documents(client: Client, consent_id, dataset_id):
    delete_documents_response = client.delete_documents(consent_id=consent_id,
                                                        dataset_id=dataset_id)

    assert 'documents' in delete_documents_response, 'Missing documents in response'
Exemplo n.º 2
0
def test_delete_documents_with_pagination(client: Client, max_results,
                                          next_token):
    response = client.delete_documents(max_results=max_results,
                                       next_token=next_token)
    assert 'documents' in response, 'Missing documents in response'
    assert 'nextToken' in response, 'Missing nextToken in response'