mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
25ee60e0dd
- @copilotkit/showcase-shared: React hooks, components, A2UI catalog, SalesDashboard - Shared Python tools: 7 implementations + 54 pytest tests - Shared TypeScript tools: equivalents + 43 vitest tests - React component tests: 68 tests (7 suites) - Aimock fixtures: 18 deterministic demo scenarios
19 lines
575 B
Python
19 lines
575 B
Python
import pytest
|
|
from tools import schedule_meeting_impl
|
|
|
|
def test_returns_pending_status():
|
|
result = schedule_meeting_impl("discuss roadmap")
|
|
assert result["status"] == "pending_approval"
|
|
|
|
def test_includes_reason():
|
|
result = schedule_meeting_impl("quarterly review")
|
|
assert result["reason"] == "quarterly review"
|
|
|
|
def test_includes_duration_minutes():
|
|
result = schedule_meeting_impl("sync", 45)
|
|
assert result["duration_minutes"] == 45
|
|
|
|
def test_default_duration():
|
|
result = schedule_meeting_impl("sync")
|
|
assert result["duration_minutes"] == 30
|