mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix(ci): 修正音乐测试与导入排序门禁
This commit is contained in:
@@ -8,7 +8,6 @@ from datetime import datetime
|
|||||||
from enum import StrEnum
|
from enum import StrEnum
|
||||||
from typing import Protocol
|
from typing import Protocol
|
||||||
|
|
||||||
|
|
||||||
_PLUGIN_ID_PATTERN = re.compile(r"^[A-Za-z][A-Za-z0-9]{0,127}$")
|
_PLUGIN_ID_PATTERN = re.compile(r"^[A-Za-z][A-Za-z0-9]{0,127}$")
|
||||||
_ONLINE_SOURCE_KEY_PATTERN = re.compile(
|
_ONLINE_SOURCE_KEY_PATTERN = re.compile(
|
||||||
r"^github:[a-z0-9](?:[a-z0-9-]{0,38})/"
|
r"^github:[a-z0-9](?:[a-z0-9-]{0,38})/"
|
||||||
|
|||||||
@@ -3,14 +3,14 @@
|
|||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from sqlalchemy.orm import Session
|
|
||||||
from sqlalchemy.exc import IntegrityError
|
from sqlalchemy.exc import IntegrityError
|
||||||
|
from sqlalchemy.orm import Session
|
||||||
|
|
||||||
from app.application.plugin.identity import (
|
from app.application.plugin.identity import (
|
||||||
PluginBindingBasis,
|
PluginBindingBasis,
|
||||||
PluginPayloadSourceType,
|
|
||||||
PluginIdentity,
|
PluginIdentity,
|
||||||
PluginIdentityConflictError,
|
PluginIdentityConflictError,
|
||||||
|
PluginPayloadSourceType,
|
||||||
TrustedPluginSourceType,
|
TrustedPluginSourceType,
|
||||||
WritePluginIdentityCommand,
|
WritePluginIdentityCommand,
|
||||||
normalize_physical_plugin_id,
|
normalize_physical_plugin_id,
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ from app.chain.scraping import ScrapingChain, ScrapingConfig, _MusicScrapeFileRe
|
|||||||
from app.domain.context import MUSIC_ENTITY_ALBUM, MusicAlbumInfo, MusicInfo, MusicLyrics
|
from app.domain.context import MUSIC_ENTITY_ALBUM, MusicAlbumInfo, MusicInfo, MusicLyrics
|
||||||
from app.runtime.events import Event
|
from app.runtime.events import Event
|
||||||
from app.domain.meta.metamusic import MetaMusic
|
from app.domain.meta.metamusic import MetaMusic
|
||||||
from app.schemas import FileItem
|
from app.schemas.file import FileItem
|
||||||
from app.schemas.types import EventType, ScrapingPolicy
|
from app.schemas.types import EventType, ScrapingPolicy
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
"""插件身份事实、条件写和存量迁移决策测试。"""
|
"""插件身份事实、条件写和存量迁移决策测试。"""
|
||||||
|
|
||||||
|
import threading
|
||||||
from concurrent.futures import ThreadPoolExecutor
|
from concurrent.futures import ThreadPoolExecutor
|
||||||
from dataclasses import replace
|
from dataclasses import replace
|
||||||
from datetime import datetime, timedelta, timezone
|
from datetime import datetime, timedelta, timezone
|
||||||
import threading
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
@@ -23,7 +23,6 @@ from app.db.adapters.pluginidentity import TransactionalPluginIdentityStore
|
|||||||
from app.db.models import load_all_models
|
from app.db.models import load_all_models
|
||||||
from app.db.models.pluginidentity import PluginIdentity as PluginIdentityModel
|
from app.db.models.pluginidentity import PluginIdentity as PluginIdentityModel
|
||||||
|
|
||||||
|
|
||||||
NOW = datetime(2026, 8, 25, 12, 0, tzinfo=timezone.utc)
|
NOW = datetime(2026, 8, 25, 12, 0, tzinfo=timezone.utc)
|
||||||
OFFICIAL_SOURCE = "github:jxxghp/moviepilot-plugins"
|
OFFICIAL_SOURCE = "github:jxxghp/moviepilot-plugins"
|
||||||
THIRD_PARTY_SOURCE = "github:example/moviepilot-plugins"
|
THIRD_PARTY_SOURCE = "github:example/moviepilot-plugins"
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ except ModuleNotFoundError:
|
|||||||
|
|
||||||
from app.db.models.pluginidentity import PluginIdentity
|
from app.db.models.pluginidentity import PluginIdentity
|
||||||
|
|
||||||
|
|
||||||
MIGRATION = "database.versions.d2e4f6a8b0c1_3_0_9"
|
MIGRATION = "database.versions.d2e4f6a8b0c1_3_0_9"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,12 +6,9 @@ from app.api.endpoints.transfer import (
|
|||||||
match_manual_transfer_target_path,
|
match_manual_transfer_target_path,
|
||||||
recommend_episode_format,
|
recommend_episode_format,
|
||||||
)
|
)
|
||||||
from app.schemas import (
|
from app.schemas.file import FileItem
|
||||||
EpisodeFormatRecommendItem,
|
from app.schemas.system import TransferDirectoryConf
|
||||||
FileItem,
|
from app.schemas.transfer import EpisodeFormatRecommendItem, ManualTransferItem
|
||||||
ManualTransferItem,
|
|
||||||
TransferDirectoryConf,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def test_manual_music_transfer_forwards_entity_namespace(monkeypatch):
|
def test_manual_music_transfer_forwards_entity_namespace(monkeypatch):
|
||||||
|
|||||||
Reference in New Issue
Block a user