feat: усилить reconciler для lab4

This commit is contained in:
2026-11-05 23:30:24 +03:00
parent a3bbdeef42
commit 1ad44408ba
11 changed files with 276 additions and 54 deletions
+2
View File
@@ -46,6 +46,7 @@ class StorageThatMustNotBeRead:
def test_uploaded_object_is_removed_when_metadata_commit_fails():
"""Удаляет объект после ошибки сохранения метаданных."""
storage = RecordingStorage()
service = AttachmentService(FailingRepository(), storage, 10 * 1024 * 1024, 40_000_000)
actor = User(uuid4(), 'tester', 'Tester', datetime.now(timezone.utc))
@@ -70,6 +71,7 @@ def test_uploaded_object_is_removed_when_metadata_commit_fails():
def test_failed_attachment_content_returns_conflict_without_s3_read():
"""Возвращает конфликт для ошибочного вложения без чтения S3."""
now = datetime.now(timezone.utc)
attachment = Attachment(
id=uuid4(),