Spaces:
Paused
Paused
Download tests/test_agent_skills.py from mega345evolutions/Ultroid: direct link, hf CLI and curl.
- Browser
- Download file 748 Bytes
-
https://huggingface.co/spaces/mega345evolutions/Ultroid/resolve/main/tests/test_agent_skills.py
- Command line
-
hf download hf://spaces/mega345evolutions/Ultroid/tests/test_agent_skills.py
-
curl -L -o test_agent_skills.py https://huggingface.co/spaces/mega345evolutions/Ultroid/resolve/main/tests/test_agent_skills.py
748 Bytes
| import unittest | |
| from pyUltroid.agent._skills import ( | |
| SKILLS, | |
| available_skills, | |
| render_skills, | |
| skill_names, | |
| ) | |
| class SkillTests(unittest.TestCase): | |
| def test_skill_registry_is_declarative_and_unique(self): | |
| names = [skill.name for skill in SKILLS] | |
| self.assertEqual(len(names), len(set(names))) | |
| self.assertTrue(names) | |
| def test_surface_filtering(self): | |
| self.assertIn("diagnostics", skill_names(".agent")) | |
| self.assertNotIn("diagnostics", skill_names(".ailocal")) | |
| def test_render_is_empty_when_no_skills_apply(self): | |
| self.assertEqual(render_skills(".nonexistent"), "") | |
| self.assertIn("research", render_skills(".ai")) | |
| if __name__ == "__main__": | |
| unittest.main() | |