diff --git a/tests/skills/test_importer.py b/tests/skills/test_importer.py index 51c0f7418d..08008d4425 100644 --- a/tests/skills/test_importer.py +++ b/tests/skills/test_importer.py @@ -255,9 +255,7 @@ def test_confirm_dangerous_installs_and_records_tier(self, tmp_path: Path): assert result.success assert result.requires_confirmation assert any("confirmed by caller" in w for w in result.warnings) - content = ( - tmp_path / "skills" / "hermes" / "my-skill" / ".source" - ).read_text() + content = (tmp_path / "skills" / "hermes" / "my-skill" / ".source").read_text() assert 'trust_tier = "unreviewed"' in content assert 'dangerous_capabilities = ["shell:execute"]' in content @@ -269,8 +267,6 @@ def test_benign_capabilities_need_no_confirmation(self, tmp_path: Path): assert result.success assert not result.requires_confirmation assert result.dangerous_capabilities == [] - content = ( - tmp_path / "skills" / "hermes" / "my-skill" / ".source" - ).read_text() + content = (tmp_path / "skills" / "hermes" / "my-skill" / ".source").read_text() assert 'trust_tier = "unreviewed"' in content assert "dangerous_capabilities = []" in content diff --git a/tests/skills/test_skills.py b/tests/skills/test_skills.py index fb587923ae..b13810e760 100644 --- a/tests/skills/test_skills.py +++ b/tests/skills/test_skills.py @@ -171,9 +171,7 @@ def test_no_policy_runs_capability_skills(self): assert result.context.get("result") == "hello" def test_policy_blocks_missing_capability(self): - executor = SkillExecutor( - ToolExecutor([EchoTool()]), allowed_capabilities=set() - ) + executor = SkillExecutor(ToolExecutor([EchoTool()]), allowed_capabilities=set()) result = executor.run(self._manifest()) assert not result.success assert len(result.step_results) == 1 diff --git a/tests/tools/test_knowledge_sql.py b/tests/tools/test_knowledge_sql.py index 1b3f8d70f6..72bec1f1e9 100644 --- a/tests/tools/test_knowledge_sql.py +++ b/tests/tools/test_knowledge_sql.py @@ -70,9 +70,7 @@ def test_allows_select_with_keyword_substring(store: KnowledgeStore) -> None: from openjarvis.tools.knowledge_sql import KnowledgeSQLTool tool = KnowledgeSQLTool(store=store) - result = tool.execute( - query="SELECT author AS created_author FROM knowledge_chunks" - ) + result = tool.execute(query="SELECT author AS created_author FROM knowledge_chunks") assert result.success, result.content assert "Alice" in result.content