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]: