refactor: clean up presentation layer — AppState grouping, multipart extractor, thin handlers
This commit is contained in:
@@ -17,13 +17,7 @@ async fn returns_asset_with_resolved_metadata() {
|
||||
checksum: Checksum::new("a".repeat(64)).unwrap(),
|
||||
};
|
||||
let owner = SystemId::new();
|
||||
let asset = Asset::new(
|
||||
source,
|
||||
AssetType::Image,
|
||||
"image/jpeg",
|
||||
1024,
|
||||
owner,
|
||||
);
|
||||
let asset = Asset::new(source, AssetType::Image, "image/jpeg", 1024, owner);
|
||||
asset_repo.save(&asset).await.unwrap();
|
||||
|
||||
// Add exif layer
|
||||
|
||||
@@ -77,7 +77,6 @@ impl Harness {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#[tokio::test]
|
||||
async fn ingests_successfully() {
|
||||
let h = Harness::new();
|
||||
|
||||
Reference in New Issue
Block a user