test(profiles): fix ruff F401/F841 in #7305 regression
This commit is contained in:
1 parent
cd51670419
commit
d2e470b218
1 file changed
-5
@@ -5,7 +5,6 @@ from __future__ import annotations
|
||||
|
||||
import builtins
|
||||
import importlib
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -37,10 +36,6 @@ def test_skills_stats_works_without_agent_skill_utils(tmp_path):
|
||||
importlib.reload(profiles) # ensure the module-level agent imports are re-evaluated
|
||||
try:
|
||||
# Patch the import used by _get_profile_skills_stats' compute path.
|
||||
import api.profiles as p2
|
||||
orig = p2.__dict__.get("iter_skill_index_files")
|
||||
# The fallback is installed inside the function; simulate the missing
|
||||
# module by patching builtins for the module's import machinery.
|
||||
with pytest.MonkeyPatch.context() as mp:
|
||||
mp.setattr(builtins, "__import__", no_agent)
|
||||
enabled, compatible = profiles._get_profile_skills_stats(d)
|
||||
|
||||
Reference in new issue
Block a user