import pytest
from target_simulator.utils.logger import get_logger, setup_basic_logging
import tkinter as tk


def test_get_logger_returns_logger():
    logger = get_logger("test")
    assert logger.name == "test"


def test_setup_basic_logging_runs():
    # Use conftest's DummyTk for headless test environment
    root = tk.Tk()
    setup_basic_logging(root)
