perf:优化webui交互体验,优化统计逻辑,优化log展示
This commit is contained in:
13
pytests/webui/test_system_routes.py
Normal file
13
pytests/webui/test_system_routes.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from src.webui.routers import system
|
||||
|
||||
|
||||
def test_is_newer_version_detects_patch_update() -> None:
|
||||
assert system._is_newer_version("1.0.7", "1.0.6") is True
|
||||
|
||||
|
||||
def test_is_newer_version_ignores_same_version_with_shorter_parts() -> None:
|
||||
assert system._is_newer_version("1.0.0", "1.0") is False
|
||||
|
||||
|
||||
def test_is_newer_version_handles_unknown_current_version() -> None:
|
||||
assert system._is_newer_version("1.0.7", "unknown") is False
|
||||
Reference in New Issue
Block a user