trustgraph/tests/unit
SAY-5 0ed5ec00b3 fix(ontology): guard against empty query string in SPARQL generator
Closes #870.  query.split()[0] in _generate_with_llm raised IndexError
when the LLM response 'query' field passed the keyword-startswith guard
but split to an empty list (e.g. if the guard is ever weakened during
refactoring).  Compute parts once, return None when empty, and reuse
parts[0] for the query_type read.

Signed-off-by: SAY-5 <saiasish.cnp@gmail.com>
2026-05-07 02:47:15 -07:00
..
test_agent release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
test_base release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
test_chunking release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
test_cli release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
test_clients release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
test_concurrency release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
test_config Release/v1.2 (#457) 2025-08-18 20:56:09 +01:00
test_cores release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
test_decoding release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
test_direct release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
test_embeddings Fix Ollama async issue (#854) 2026-04-28 15:43:04 +01:00
test_extract test(ontology): harden domain/range validation + add missing tests (#848) 2026-04-28 16:33:49 +01:00
test_gateway refactor(iam): pluggable IAM regime via authenticate/authorise contract (#853) 2026-04-28 16:19:41 +01:00
test_knowledge_graph release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
test_librarian release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
test_provenance release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
test_pubsub release/v2.3 -> master (#837) 2026-04-21 16:30:02 +01:00
test_query fix(ontology): guard against empty query string in SPARQL generator 2026-05-07 02:47:15 -07:00
test_rdf Pub/sub abstraction: decouple from Pulsar (#751) 2026-04-01 20:16:53 +01:00
test_reliability release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
test_retrieval release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
test_rev_gateway Fix tests (#593) 2025-12-19 08:53:21 +00:00
test_storage release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
test_structured_data release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
test_tables release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
test_text_completion Fix Ollama async issue (#854) 2026-04-28 15:43:04 +01:00
test_translators release/v2.4 -> master (#844) 2026-04-22 15:19:57 +01:00
__init__.py Test suite executed from CI pipeline (#433) 2025-07-14 14:57:44 +01:00
test_prompt_manager.py Feature/prompts jsonl (#619) 2026-01-26 17:38:00 +00:00
test_prompt_manager_edge_cases.py Update to enable knowledge extraction using the agent framework (#439) 2025-07-21 14:31:57 +01:00
test_python_api_client.py Add agent explainability instrumentation and unify envelope field naming (#795) 2026-04-13 16:16:42 +01:00