"""Tests for ai4gh.core.logging."""

from __future__ import annotations

from ai4gh.core.logging import configure_logging, get_logger


class TestConfigureLogging:
    def test_configure_default(self) -> None:
        configure_logging()
        # should not raise

    def test_configure_debug(self) -> None:
        configure_logging(level="DEBUG")

    def test_configure_warning(self) -> None:
        configure_logging(level="WARNING")


class TestGetLogger:
    def test_returns_logger(self) -> None:
        logger = get_logger("test")
        assert logger is not None

    def test_returns_logger_without_name(self) -> None:
        logger = get_logger()
        assert logger is not None
