refactor(import): fix test files to not use AppContext

This commit is contained in:
2026-06-11 21:51:24 +02:00
parent b5ff43d9dc
commit 76edd52bb0
2 changed files with 9 additions and 9 deletions

View File

@@ -10,11 +10,11 @@ use crate::test_helpers::TestContextBuilder;
#[tokio::test]
async fn creates_session_with_parsed_file() {
let sessions = InMemoryImportSessionRepository::new();
let ctx = TestContextBuilder::new().build();
let b = TestContextBuilder::new();
let result = create_session::execute(
Arc::clone(&sessions) as _,
ctx.services.document_parser.clone(),
b.document_parser.clone(),
CreateImportSessionCommand {
user_id: Uuid::new_v4(),
bytes: b"col1\nval1".to_vec(),