From cdd8072b32bd321764a8b63057c04a5cac27bc05 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Mon, 30 Mar 2026 20:36:40 -0700 Subject: [PATCH] fix(resources): move MagicMock import to module level in profile registry tests --- tests/test_resources/test_profile_registry.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/test_resources/test_profile_registry.py b/tests/test_resources/test_profile_registry.py index 019f203..e55bcfa 100644 --- a/tests/test_resources/test_profile_registry.py +++ b/tests/test_resources/test_profile_registry.py @@ -1,8 +1,11 @@ # tests/test_resources/test_profile_registry.py import pytest +from unittest.mock import MagicMock + from circuitforge_core.resources.profiles.schema import ( GpuProfile, ServiceProfile, load_profile ) +from circuitforge_core.resources.coordinator.profile_registry import ProfileRegistry def test_load_8gb_profile(tmp_path): @@ -53,10 +56,6 @@ def test_service_profile_defaults(): assert svc.consumers == [] -from unittest.mock import MagicMock -from circuitforge_core.resources.coordinator.profile_registry import ProfileRegistry - - def test_profile_registry_loads_public_profiles(): registry = ProfileRegistry() profiles = registry.list_public()