chore: remove unused test
This commit is contained in:
parent
01f1af98f5
commit
4789591eb3
|
|
@ -2,11 +2,11 @@ use app_error::ErrorCode;
|
||||||
use client_api_test_util::TestClient;
|
use client_api_test_util::TestClient;
|
||||||
use collab::core::transaction::DocTransactionExtension;
|
use collab::core::transaction::DocTransactionExtension;
|
||||||
use collab::preclude::Doc;
|
use collab::preclude::Doc;
|
||||||
use collab_document::blocks::DocumentData;
|
|
||||||
use collab_entity::CollabType;
|
use collab_entity::CollabType;
|
||||||
use database_entity::dto::CreateCollabParams;
|
use database_entity::dto::CreateCollabParams;
|
||||||
use workspace_template::document::get_started::{DocumentTemplate, GetStartedDocumentTemplate};
|
use workspace_template::document::get_started::GetStartedDocumentTemplate;
|
||||||
use workspace_template::{WorkspaceTemplate, WorkspaceTemplateBuilder};
|
use workspace_template::WorkspaceTemplateBuilder;
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn insert_empty_data_test() {
|
async fn insert_empty_data_test() {
|
||||||
|
|
@ -74,29 +74,29 @@ async fn insert_invalid_data_test() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
// #[tokio::test]
|
||||||
async fn load_document_test() {
|
// async fn load_document_test() {
|
||||||
let test_client = TestClient::new_user().await;
|
// let test_client = TestClient::new_user().await;
|
||||||
let workspace_id = test_client.workspace_id().await;
|
// let workspace_id = test_client.workspace_id().await;
|
||||||
let object_id = uuid::Uuid::new_v4().to_string();
|
// let object_id = uuid::Uuid::new_v4().to_string();
|
||||||
|
//
|
||||||
for file in [include_str!("../test_asset/document/empty_lines.json")] {
|
// for file in [include_str!("../test_asset/document/empty_lines.json")] {
|
||||||
let document_data: DocumentData = serde_json::from_str(file).unwrap();
|
// let document_data: DocumentData = serde_json::from_str(file).unwrap();
|
||||||
let template = DocumentTemplate::from_data(document_data)
|
// let template = DocumentTemplate::from_data(document_data)
|
||||||
.create(object_id.clone())
|
// .create(object_id.clone())
|
||||||
.await
|
// .await
|
||||||
.unwrap();
|
// .unwrap();
|
||||||
|
//
|
||||||
let data = template.object_data.encode_to_bytes().unwrap();
|
// let data = template.object_data.encode_to_bytes().unwrap();
|
||||||
let params = CreateCollabParams {
|
// let params = CreateCollabParams {
|
||||||
workspace_id: workspace_id.clone(),
|
// workspace_id: workspace_id.clone(),
|
||||||
object_id: object_id.clone(),
|
// object_id: object_id.clone(),
|
||||||
encoded_collab_v1: data,
|
// encoded_collab_v1: data,
|
||||||
collab_type: template.object_type,
|
// collab_type: template.object_type,
|
||||||
};
|
// };
|
||||||
test_client.api_client.create_collab(params).await.unwrap();
|
// test_client.api_client.create_collab(params).await.unwrap();
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn insert_folder_data_success_test() {
|
async fn insert_folder_data_success_test() {
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue