Formatting issues

This commit is contained in:
Benjamin Harder
2025-10-01 18:43:38 +02:00
parent 1a4bd8f4be
commit 8d9a64798d
41 changed files with 725 additions and 387 deletions

View File

@@ -2,9 +2,10 @@
import asyncio
from pathlib import Path
from unittest.mock import AsyncMock, MagicMock, patch
import pytest
from src.deletion_handler.deletion_handler import WatcherManager, DeletionHandler
from src.deletion_handler.deletion_handler import DeletionHandler, WatcherManager
@pytest.mark.asyncio
@@ -103,6 +104,7 @@ def test_group_deletions_by_folder():
# Also check no extra keys
assert set(deletions.keys()) == set(expected.keys())
@pytest.mark.asyncio
async def test_process_deletes_after_delay_clears_deleted_files(monkeypatch):
"""Tests that _process_deletes_after_delay clears deleted files and correctly processes their parent folders asynchronously."""
@@ -149,8 +151,6 @@ async def test_process_deletes_after_delay_clears_deleted_files(monkeypatch):
assert set(arr.called) == expected_folders
@pytest.mark.asyncio
async def test_file_deletion_triggers_handler_with_watchermanager(tmp_path):
"""Tests that when a file is deleted in a watched directory,