from chanakya.handoffs import handoff_to_both, handoff_to_jira, handoff_to_salesforce


def test_jira_exports():
    from chanakya.jira import agent, app_factory

    assert agent is not None
    assert callable(app_factory)


def test_salesforce_exports():
    from chanakya.salesforce import agent, app_factory

    assert agent is not None
    assert callable(app_factory)


def test_chanakya_exports_and_output_type():
    from chanakya.agent import agent, _app_factory

    assert agent is not None
    assert callable(_app_factory)
    assert handoff_to_jira in agent.output_type
    assert handoff_to_salesforce in agent.output_type
    assert handoff_to_both in agent.output_type
