"""Tests for PlausibilityChecker structure."""

import pytest
import sys
from pathlib import Path

sys.path.insert(0, str(Path(__file__).resolve().parent.parent / "backend"))


class TestPlausibilityCheckerStructure:
    def test_check_method_exists(self):
        from local_llm.plausibility import PlausibilityChecker
        assert hasattr(PlausibilityChecker, 'check')

    def test_check_returns_expected_keys(self):
        """The check method should return plausible, confidence, notes."""
        import inspect
        from local_llm.plausibility import PlausibilityChecker
        source = inspect.getsource(PlausibilityChecker.check)
        assert '"plausible"' in source
        assert '"confidence"' in source
        assert '"notes"' in source
