Spaces:
Build error
Build error
Commit ·
f4fbb05
1
Parent(s): f8e7d59
Upload folder using huggingface_hub
Browse files
tests/test_routes_governance_execute.py
CHANGED
|
@@ -42,8 +42,9 @@ def _evaluate_intent(client):
|
|
| 42 |
"provenance": {},
|
| 43 |
"configuration": {},
|
| 44 |
}
|
| 45 |
-
resp = client.post(
|
| 46 |
-
|
|
|
|
| 47 |
assert resp.status_code == 200, resp.text
|
| 48 |
data = resp.json()
|
| 49 |
# data["intent_id"] (top level, set by evaluate_intent_endpoint right
|
|
|
|
| 42 |
"provenance": {},
|
| 43 |
"configuration": {},
|
| 44 |
}
|
| 45 |
+
resp = client.post(
|
| 46 |
+
"/api/v1/intents/evaluate", json=payload, headers={"X-Tenant-ID": TENANT_ID}
|
| 47 |
+
)
|
| 48 |
assert resp.status_code == 200, resp.text
|
| 49 |
data = resp.json()
|
| 50 |
# data["intent_id"] (top level, set by evaluate_intent_endpoint right
|