mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 13:08:19 -04:00
Add comprehensive test suite achieving 99% code coverage
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
This commit is contained in:
38
tests/test_testing_logging.py
Normal file
38
tests/test_testing_logging.py
Normal file
@@ -0,0 +1,38 @@
|
||||
"""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()
|
||||
Reference in New Issue
Block a user