Kairo-Jinkendo/backend/tests/test_ap22_actor_create.py
Lars 0b57e2ec75 AP2.2b/c: A1-Stufenwechsel, Team-Fix, Agent-Anlage, Steuerungs-Hinweise.
AP2.0e rotiert Recurring bei maturity_stage reached. Maturity-Strategie priorisiert Routinen. Team zeigt Namen und Agent-Formular. Archetyp-Hints in Kontrolle und Stufe-A-Gruppierung bei Anlage.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-12 16:19:55 +02:00

19 lines
554 B
Python

"""Actor create API."""
from tests.factories import provision_user_in_tenant
from tests.test_initiatives_actions import _auth, _login
def test_create_agent_actor(client):
user = provision_user_in_tenant(tenant_role="admin")
token = _login(client, user)
created = client.post(
"/api/actors",
json={"name": "Cursor Agent", "actor_type": "agent"},
headers=_auth(token),
)
assert created.status_code == 201
assert created.json()["name"] == "Cursor Agent"
assert created.json()["actor_type"] == "agent"