style: cargo fmt --all
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
use std::sync::Arc;
|
||||
use application::sidecar::{FullExportCommand, FullExportHandler};
|
||||
use application::testing::{
|
||||
InMemoryAssetRepository, InMemoryAssetMetadataRepository,
|
||||
InMemorySidecarRepository, InMemorySidecarWriter,
|
||||
InMemoryAssetMetadataRepository, InMemoryAssetRepository, InMemorySidecarRepository,
|
||||
InMemorySidecarWriter,
|
||||
};
|
||||
use domain::catalog::entities::{Asset, AssetMetadata, AssetType, MetadataSource, SourceReference};
|
||||
use domain::ports::AssetRepository;
|
||||
use domain::value_objects::{Checksum, MetadataValue, StructuredData, SystemId};
|
||||
use std::sync::Arc;
|
||||
|
||||
fn make_asset(owner: SystemId) -> Asset {
|
||||
let source = SourceReference {
|
||||
@@ -33,10 +33,20 @@ async fn exports_all_user_assets() {
|
||||
let mut data = StructuredData::new();
|
||||
data.insert("title", MetadataValue::String("Sunset".into()));
|
||||
use domain::ports::AssetMetadataRepository;
|
||||
meta_repo.save(&AssetMetadata::new(a1.asset_id, MetadataSource::UserEdited, data)).await.unwrap();
|
||||
meta_repo
|
||||
.save(&AssetMetadata::new(
|
||||
a1.asset_id,
|
||||
MetadataSource::UserEdited,
|
||||
data,
|
||||
))
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
let handler = FullExportHandler::new(asset_repo, meta_repo, sidecar_repo, writer.clone());
|
||||
let count = handler.execute(FullExportCommand { owner_id: owner }).await.unwrap();
|
||||
let count = handler
|
||||
.execute(FullExportCommand { owner_id: owner })
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
assert_eq!(count, 2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user