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