Add pre-commit hook enforcing 30s test suite time limit (#132)

This commit is contained in:
Alexander Whitestone
2026-03-05 19:45:38 -05:00
committed by GitHub
parent aff3edb06a
commit 2b97da9e9c
65 changed files with 356 additions and 611 deletions

View File

@@ -6,7 +6,6 @@ from integrations.shortcuts.siri import get_setup_guide, SHORTCUT_ACTIONS
def test_setup_guide_has_title():
guide = get_setup_guide()
assert "title" in guide
assert "Timmy" in guide["title"]
def test_setup_guide_has_instructions():
@@ -33,11 +32,11 @@ def test_setup_guide_actions_have_required_fields():
def test_shortcut_actions_catalog():
assert len(SHORTCUT_ACTIONS) >= 4
names = [a.name for a in SHORTCUT_ACTIONS]
assert "Chat with Timmy" in names
assert "Chat with Agent" in names
assert "Check Status" in names
def test_chat_shortcut_is_post():
chat = next(a for a in SHORTCUT_ACTIONS if a.name == "Chat with Timmy")
chat = next(a for a in SHORTCUT_ACTIONS if a.name == "Chat with Agent")
assert chat.method == "POST"
assert "/shortcuts/chat" in chat.endpoint