From d2e470b218bcad28f050e7f3d8392580758887d3 Mon Sep 17 00:00:00 2001 From: webtecnica Date: Wed, 26 Aug 2026 10:59:01 -0300 Subject: [PATCH] test(profiles): fix ruff F401/F841 in #7305 regression --- tests/test_issue7305_profiles_fallback.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/test_issue7305_profiles_fallback.py b/tests/test_issue7305_profiles_fallback.py index c89be6e1..c79d403f 100644 --- a/tests/test_issue7305_profiles_fallback.py +++ b/tests/test_issue7305_profiles_fallback.py @@ -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)