| """Isolated test — just claim_client.analyze() against the live clAIm endpoint. |
| Nothing else. No graph, no LLM verifier, no attribution. |
| |
| Run from the veriscite/ root: |
| python -m tests.test_analyze_live |
| """ |
|
|
| import asyncio |
| from app.tools import claim_client |
|
|
|
|
| async def main(): |
| claim = "Aspirin inhibits the production of thromboxane A2." |
| evidence = ("Aspirin irreversibly inhibits cyclooxygenase, thereby reducing " |
| "thromboxane A2 synthesis in platelets.") |
|
|
| result = await claim_client.analyze(claim, evidence) |
|
|
| print("RAW RESPONSE:") |
| print(result) |
| print() |
| print("winner.label:", result["winner"]["label"]) |
| print("winner.confidence:", result["winner"]["confidence"]) |
| print("attribution_available:", result["attribution_available"]) |
|
|
|
|
| if __name__ == "__main__": |
| asyncio.run(main()) |
|
|