From 9fb3d11412d822ba28872056395b9e7544ecc1b8 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Fri, 22 May 2026 13:29:09 -0400 Subject: [PATCH] =?UTF-8?q?fix(fc5):=20ruff=20I001=20=E2=80=94=20consolida?= =?UTF-8?q?te=20unaliased=20imports=20+=20tests/test=5Fgs=5Fingest=20crede?= =?UTF-8?q?ntial=5Ftype=20assertion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 (1M context) --- backend/app/tasks/migration.py | 3 +-- tests/test_gs_ingest.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/app/tasks/migration.py b/backend/app/tasks/migration.py index bdedb93..6e172e9 100644 --- a/backend/app/tasks/migration.py +++ b/backend/app/tasks/migration.py @@ -20,10 +20,9 @@ from ..celery_app import celery from ..config import get_config from ..models import MigrationRun from ..services.credential_crypto import CredentialCrypto +from ..services.migrators import gs_ingest, ir_ingest, ml_queue, tag_apply, verify from ..services.migrators import backup as backup_mod -from ..services.migrators import gs_ingest, ir_ingest, ml_queue from ..services.migrators import rollback as rollback_mod -from ..services.migrators import tag_apply, verify log = logging.getLogger(__name__) diff --git a/tests/test_gs_ingest.py b/tests/test_gs_ingest.py index 1574beb..189bbef 100644 --- a/tests/test_gs_ingest.py +++ b/tests/test_gs_ingest.py @@ -81,7 +81,7 @@ async def test_credential_re_encrypted_with_fc_key(db, tmp_path): select(Credential).where(Credential.platform == "patreon") )).scalar_one() assert fc_crypto.decrypt(cred.encrypted_blob) == "session_cookie=abcdef" - assert cred.kind == "cookies" + assert cred.credential_type == "cookies" @pytest.mark.asyncio