"""Tests for domain_classifier lazy import __getattr__."""

import pytest


class TestDomainClassifierLazyImports:
    def test_import_domain_classifier(self):
        from local_deep_research.domain_classifier import DomainClassifier

        assert DomainClassifier is not None

    def test_import_domain_classification(self):
        from local_deep_research.domain_classifier import DomainClassification

        assert DomainClassification is not None

    def test_invalid_attribute_raises(self):
        with pytest.raises(AttributeError, match="has no attribute"):
            from local_deep_research import domain_classifier

            domain_classifier.__getattr__("NonexistentThing")
