fix(resources): move MagicMock import to module level in profile registry tests
This commit is contained in:
parent
0389f4f167
commit
cdd8072b32
1 changed files with 3 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue