@@ -162,17 +162,13 @@ def test_pia_agent_seeded(self, con):
162162
163163 def test_skills_seeded (self , con ):
164164 """Test that skills are seeded."""
165- result = con .sql (
166- "SELECT COUNT(*) FROM spec_objects WHERE kind = 'skill'"
167- ).fetchone ()
165+ result = con .sql ("SELECT COUNT(*) FROM spec_objects WHERE kind = 'skill'" ).fetchone ()
168166 assert result is not None
169167 assert result [0 ] >= 3 # At least 3 skills
170168
171169 def test_schemas_seeded (self , con ):
172170 """Test that schemas are seeded."""
173- result = con .sql (
174- "SELECT COUNT(*) FROM spec_objects WHERE kind = 'schema'"
175- ).fetchone ()
171+ result = con .sql ("SELECT COUNT(*) FROM spec_objects WHERE kind = 'schema'" ).fetchone ()
176172 assert result is not None
177173 assert result [0 ] >= 3 # At least 3 schemas
178174
@@ -186,9 +182,7 @@ def test_templates_seeded(self, con):
186182
187183 def test_orgs_seeded (self , con ):
188184 """Test that organizations are seeded."""
189- result = con .sql (
190- "SELECT COUNT(*) FROM spec_objects WHERE kind = 'org'"
191- ).fetchone ()
185+ result = con .sql ("SELECT COUNT(*) FROM spec_objects WHERE kind = 'org'" ).fetchone ()
192186 assert result is not None
193187 assert result [0 ] >= 5 # All 5 orgs
194188
@@ -309,9 +303,7 @@ def test_spec_search(self, spec_engine):
309303 def test_validate_payload_success (self , spec_engine ):
310304 """Test validate_payload_against_spec with valid payload."""
311305 result = spec_engine .validate_payload_against_spec (
312- kind = "schema" ,
313- name = "agent_config_schema" ,
314- payload = {"name" : "test" , "role" : "planner" }
306+ kind = "schema" , name = "agent_config_schema" , payload = {"name" : "test" , "role" : "planner" }
315307 )
316308 # Should succeed or have no schema (ok=True or note about no schema)
317309 assert "ok" in result or "note" in result
@@ -371,14 +363,12 @@ def test_view_consistency(self, full_setup):
371363 con = full_setup
372364
373365 # Count from table
374- table_count = con .sql (
375- "SELECT COUNT(*) FROM spec_objects WHERE kind = 'agent'"
376- ). fetchone ()[ 0 ]
366+ table_count = con .sql ("SELECT COUNT(*) FROM spec_objects WHERE kind = 'agent'" ). fetchone ()[
367+ 0
368+ ]
377369
378370 # Count from view
379- view_count = con .sql (
380- "SELECT COUNT(*) FROM spec_agents_view"
381- ).fetchone ()[0 ]
371+ view_count = con .sql ("SELECT COUNT(*) FROM spec_agents_view" ).fetchone ()[0 ]
382372
383373 assert table_count == view_count
384374
0 commit comments