mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
fix pytest
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from unittest.mock import AsyncMock, MagicMock, patch
|
||||
|
||||
import pytest
|
||||
from handler.scan_handler import ScanType
|
||||
from handler.scan_handler import MetadataSource, ScanType
|
||||
from tasks.scan_library import ScanLibraryTask, scan_library_task
|
||||
|
||||
|
||||
@@ -25,7 +25,9 @@ class TestScanLibraryTask:
|
||||
await task.run()
|
||||
|
||||
mock_log.info.assert_any_call("Scheduled library scan started...")
|
||||
mock_scan_platforms.assert_called_once_with([], scan_type=ScanType.UNIDENTIFIED)
|
||||
mock_scan_platforms.assert_called_once_with(
|
||||
[], scan_type=ScanType.UNIDENTIFIED, metadata_sources=[MetadataSource.LB]
|
||||
)
|
||||
mock_log.info.assert_any_call("Scheduled library scan done")
|
||||
|
||||
@patch("tasks.scan_library.ENABLE_SCHEDULED_RESCAN", False)
|
||||
|
||||
Reference in New Issue
Block a user