From 4b27b7bc42c586e271210d8df609899f4e82be58 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 29 Apr 2026 16:29:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=20UgreenCrypto=20=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E8=B7=AF=E5=BE=84=E8=87=B3=20app.modules.ugreen=20?= =?UTF-8?q?=E5=B9=B6=E6=9B=B4=E6=96=B0=E7=9B=B8=E5=85=B3=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/ugreen/api.py | 2 +- app/{utils/ugreen_crypto.py => modules/ugreen/crypto.py} | 0 tests/manual/ugreen_media_cli.py | 2 +- tests/test_ugreen_crypto.py | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename app/{utils/ugreen_crypto.py => modules/ugreen/crypto.py} (100%) diff --git a/app/modules/ugreen/api.py b/app/modules/ugreen/api.py index 6bf669ca..da576198 100644 --- a/app/modules/ugreen/api.py +++ b/app/modules/ugreen/api.py @@ -7,7 +7,7 @@ from urllib.parse import urlsplit, urlunsplit from requests import Session from app.log import logger -from app.utils.ugreen_crypto import UgreenCrypto +from app.modules.ugreen.crypto import UgreenCrypto from app.utils.url import UrlUtils diff --git a/app/utils/ugreen_crypto.py b/app/modules/ugreen/crypto.py similarity index 100% rename from app/utils/ugreen_crypto.py rename to app/modules/ugreen/crypto.py diff --git a/tests/manual/ugreen_media_cli.py b/tests/manual/ugreen_media_cli.py index 973a6589..01b16d7b 100644 --- a/tests/manual/ugreen_media_cli.py +++ b/tests/manual/ugreen_media_cli.py @@ -21,7 +21,7 @@ if __name__ == "__main__" and __package__ is None: import requests -from app.utils.ugreen_crypto import UgreenCrypto +from app.modules.ugreen.crypto import UgreenCrypto class UgreenLoginError(Exception): diff --git a/tests/test_ugreen_crypto.py b/tests/test_ugreen_crypto.py index 898a5ee1..ccfaca07 100644 --- a/tests/test_ugreen_crypto.py +++ b/tests/test_ugreen_crypto.py @@ -6,7 +6,7 @@ import unittest from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric import padding, rsa -from app.utils.ugreen_crypto import UgreenCrypto +from app.modules.ugreen.crypto import UgreenCrypto def _generate_rsa_keys() -> tuple[str, rsa.RSAPrivateKey]: