From 43ccc2b6e0c9d33e42f73eff698a48f3d3b9ae5a Mon Sep 17 00:00:00 2001 From: Simon Pinfold Date: Wed, 5 Aug 2026 13:24:11 -0700 Subject: [PATCH] Move schemas_in import to module scope in test_list_filter Review feedback: no import cycle requires the local import. --- tests-unit/assets_test/test_list_filter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests-unit/assets_test/test_list_filter.py b/tests-unit/assets_test/test_list_filter.py index cac4e1f22..fce269cd9 100644 --- a/tests-unit/assets_test/test_list_filter.py +++ b/tests-unit/assets_test/test_list_filter.py @@ -5,6 +5,8 @@ import pytest import requests from helpers import assert_hash_fields_consistent +from app.assets.api import schemas_in + def test_list_assets_paging_and_sort(http: requests.Session, api_base: str, asset_factory, make_asset_bytes): names = ["a1_u.safetensors", "a2_u.safetensors", "a3_u.safetensors"] @@ -716,8 +718,6 @@ def test_list_assets_tag_values_case_sensitive(http, api_base, asset_factory, ma def test_tag_filter_alias_fields_marked_deprecated(): - from app.assets.api import schemas_in - for model in (schemas_in.ListAssetsQuery, schemas_in.TagsRefineQuery): props = model.model_json_schema()["properties"] for field in ("include_tags", "exclude_tags"):