You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: delete.rs
    path of file: ./repos/prisma-client-rust/integration-tests/tests
    
    the code of the file until where you have to start completion: use prisma_client_rust::prisma_errors::query_engine::RecordRequiredButNotFound;

use crate::{db::*, utils::*};

#[tokio::test]
async fn test() -> TestResult {
    let client = client().await;

    let author = client
        .user()
        .create("Brendan".to_string(), vec![])
        .exec()
        .await?;

    let post = client
        .post()
        .create(
            "Hi from Prisma!".to_string(),
            false,
            vec![post::author::connect(user::id::equals(author.id.clone()))],
        )
        .with(post::author::fetch())
        .exec()
        .await?;
    assert_eq!(post.title, "Hi from Prisma!");
    let author = post.author.unwrap().unwrap();
    assert_eq!(author.name, "Brendan");

    let deleted = client
        .post()
        .delete(post::id::equals(post.id.clone()))
        .with(post::author::fetch())
        .exec()
        .await?;
    assert_eq!(deleted.title, "Hi from Prisma!");
    let author = deleted.author.unwrap().unwrap();
    assert_eq!(author.name, "Brendan");

    let found = client
        .post()
        .find_unique(post::id::
    
async fn test() -> TestResult {
    let client = client().await;

    let author = client
        .user()
        .create("Brendan".to_string(), vec![])
        .exec()
        .await?;

    let post = client
        .post()
        .create(
            "Hi from Prisma!".to_string(),
            false,
            vec![post::author::connect(user::id::equals(author.id.clone()))],
        )
        .with(post::author::fetch())
        .exec()
        .await?;
    assert_eq!(post.title, "Hi from Prisma!");
    let author = post.author.unwrap().unwrap();
    assert_eq!(author.name, "Brendan");

    let deleted = client
        .post()
        .delete(post::id::equals(post.id.clone()))
        .with(post::author::fetch())
        .exec()
        .await?;
    assert_eq!(deleted.title, "Hi from Prisma!");
    let author = deleted.author.unwrap().unwrap();
    assert_eq!(author.name, "Brendan");

    let found = client
        .post()
        .find_unique(post::id::equals(post.id.clone()))
        .exec()
        .await?;
    assert!(found.is_none());

    let user = client
        .user()
        .find_unique(user::id::equals(author.id.clone()))
        .exec()
        .await?;
    assert_eq!(user.unwrap().name, "Brendan");

    cleanup(client).await
}