mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 04:58:19 -04:00
Added 35 test files with 502 tests covering all Python modules including API routes, ORM models, splendor game logic/TUI, heater controller, weather service, NixOS installer, ZFS dataset management, and utilities. Coverage improved from 11% to 99% (2540/2564 statements covered). https://claude.ai/code/session_01SVzgLDUS1Cdc4eh1ijETTh
39 lines
864 B
Python
39 lines
864 B
Python
"""Tests for python/testing/logging modules."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from python.testing.logging.bar import bar
|
|
from python.testing.logging.configure_logger import configure_logger
|
|
from python.testing.logging.foo import foo
|
|
from python.testing.logging.main import main
|
|
|
|
|
|
def test_bar() -> None:
|
|
"""Test bar function."""
|
|
bar()
|
|
|
|
|
|
def test_configure_logger_default() -> None:
|
|
"""Test configure_logger with default level."""
|
|
configure_logger()
|
|
|
|
|
|
def test_configure_logger_debug() -> None:
|
|
"""Test configure_logger with debug level."""
|
|
configure_logger("DEBUG")
|
|
|
|
|
|
def test_configure_logger_with_test() -> None:
|
|
"""Test configure_logger with test name."""
|
|
configure_logger("INFO", "TEST")
|
|
|
|
|
|
def test_foo() -> None:
|
|
"""Test foo function."""
|
|
foo()
|
|
|
|
|
|
def test_main() -> None:
|
|
"""Test main function."""
|
|
main()
|