From 84bfc45fc8aea873ee6d29971d3af2a834a9670e Mon Sep 17 00:00:00 2001 From: cschen Date: Sun, 3 Nov 2024 17:24:08 +0100 Subject: [PATCH] test(WIP): added skeleton for testing of behaviour when deleting workspace with people attached. Need to know what is the expected behaviour that we want. --- src/tests/client.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/tests/client.rs b/src/tests/client.rs index c6a0df3..39dd182 100644 --- a/src/tests/client.rs +++ b/src/tests/client.rs @@ -168,6 +168,23 @@ async fn test_deleting_twice_or_non_existing_is_an_error() { }) .await } + +// Now we can begin using WorkspaceFixtures for with a single user. + +// #[tokio::test] +// async fn test_delete_workspace_with_users_attached() { +// WorkspaceFixture::one("bob", "to-be-deleted") +// .with(|(client, workspace): &mut (crate::Client, crate::Workspace)| { + +// async move { +// client.delete_workspace(workspace.id()).await?; + +// // TODO: I Don't know what should happen here. +// Ok(()) +// } +// }) +// .await +// } .await; }