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>
19 lines
554 B
Python
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"
|