Skip to content

Independent Auditing of AI Agents. Run by human or the agent itself, to answer the most crucial question in the AI Agent Economy. Is the agent doing what is supposed to do? With iFixAi you can have this answer in less than 120 seconds.

522 B
Raw Blame
import pytest

from ifixai.cli import setup_cmd

adapter = pytest.importorskip('ifixai.providers.anthropic')


def test_setup_displays_the_actual_anthropic_provider_default(monkeypatch):
    offered = []

    def select(message, choices, **kwargs):
        offered.extend(choices)
        return kwargs['default']

    monkeypatch.setattr(setup_cmd.ui, 'select', select)
    assert setup_cmd._pick_model('anthropic', role='system under test') is None
    assert offered[0] == f'Provider default ({adapter.DEFAULT_MODEL})'