feat: python formatter finally working

This commit is contained in:
dextmorgn
2025-08-13 20:08:06 +02:00
parent 4d5f96bb8d
commit 7620a6d145
148 changed files with 6777 additions and 3269 deletions

View File

@@ -1,28 +1,36 @@
import re
from typing import Dict
from app.tools.organizations.sirene import SireneTool
from tools.organizations.sirene import SireneTool
tool = SireneTool()
def test_name():
assert tool.name() == "sirene"
def test_description():
assert tool.description() == "The Sirene API allows you to query the Sirene directory of businesses and establishments, managed by Insee."
assert (
tool.description()
== "The Sirene API allows you to query the Sirene directory of businesses and establishments, managed by Insee."
)
def test_category():
assert tool.category() == "Business intelligence"
def test_launch_org():
results = tool.launch("blablacar", 1)
assert isinstance(results, list)
assert all(isinstance(item, Dict) for item in results)
def test_launch_person():
results = tool.launch("Karim+Terrache", 1)
assert isinstance(results, list)
assert all(isinstance(item, Dict) for item in results)
def test_launch_person_space_format():
results = tool.launch("Karim Terrache", 1)
assert isinstance(results, list)