chore: remove unneeded test
This commit is contained in:
parent
ad0f477505
commit
1c7966a486
|
|
@ -73,50 +73,3 @@ async fn add_and_delete_workspace_for_non_owner_user() {
|
||||||
let member_workspaces = member.get_workspaces().await.unwrap();
|
let member_workspaces = member.get_workspaces().await.unwrap();
|
||||||
assert_eq!(member_workspaces.0.len(), 1);
|
assert_eq!(member_workspaces.0.len(), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
|
||||||
async fn test_workspace_rename() {
|
|
||||||
let (c, _user) = generate_unique_registered_user_client().await;
|
|
||||||
let workspace_id = c
|
|
||||||
.get_workspaces()
|
|
||||||
.await
|
|
||||||
.unwrap()
|
|
||||||
.0
|
|
||||||
.first()
|
|
||||||
.unwrap()
|
|
||||||
.workspace_id;
|
|
||||||
let desired_new_name = "tom's workspace";
|
|
||||||
|
|
||||||
{
|
|
||||||
c.patch_workspace(PatchWorkspaceParam {
|
|
||||||
workspace_id,
|
|
||||||
workspace_name: Some(desired_new_name.to_string()),
|
|
||||||
})
|
|
||||||
.await
|
|
||||||
.expect("Failed to rename workspace");
|
|
||||||
|
|
||||||
let workspaces = c.get_workspaces().await.expect("Failed to get workspaces");
|
|
||||||
let actual_new_name = &workspaces
|
|
||||||
.0
|
|
||||||
.first()
|
|
||||||
.expect("No workspace found")
|
|
||||||
.workspace_name;
|
|
||||||
assert_eq!(actual_new_name, desired_new_name);
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
c.patch_workspace(PatchWorkspaceParam {
|
|
||||||
workspace_id,
|
|
||||||
workspace_name: None,
|
|
||||||
})
|
|
||||||
.await
|
|
||||||
.expect("Failed to rename workspace");
|
|
||||||
let workspaces = c.get_workspaces().await.expect("Failed to get workspaces");
|
|
||||||
let actual_new_name = &workspaces
|
|
||||||
.0
|
|
||||||
.first()
|
|
||||||
.expect("No workspace found")
|
|
||||||
.workspace_name;
|
|
||||||
assert_eq!(actual_new_name, desired_new_name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue