test: add -> None return type annotations to all test methods
Some checks failed
CI / test (push) Has been cancelled
Shellhist CI / test (push) Has been cancelled
Shellhist CI / build (push) Has been cancelled

This commit is contained in:
2026-01-31 14:21:29 +00:00
parent 2a63c265d2
commit 9f925a29bf

View File

@@ -10,7 +10,7 @@ from shellhist.core import HistoryEntry, HistoryStore
class TestTimeUtils:
"""Test time utility functions."""
def test_parse_time_range_hours(self):
def test_parse_time_range_hours(self) -> None:
"""Test parsing hour-based time range."""
from shellhist.cli.time_analysis import _parse_time_range
@@ -19,7 +19,7 @@ class TestTimeUtils:
assert (result - expected).total_seconds() < 5
def test_parse_time_range_days(self):
def test_parse_time_range_days(self) -> None:
"""Test parsing day-based time range."""
from shellhist.cli.time_analysis import _parse_time_range
@@ -28,7 +28,7 @@ class TestTimeUtils:
assert (result - expected).total_seconds() < 5
def test_parse_time_range_weeks(self):
def test_parse_time_range_weeks(self) -> None:
"""Test parsing week-based time range."""
from shellhist.cli.time_analysis import _parse_time_range
@@ -41,7 +41,7 @@ class TestTimeUtils:
class TestHourlyDistribution:
"""Test hourly distribution analysis."""
def test_hourly_analysis(self):
def test_hourly_analysis(self) -> None:
"""Test basic hourly distribution."""
from shellhist.cli.time_analysis import _analyze_hourly_distribution
from rich.console import Console