File tree Expand file tree Collapse file tree
src/seclab_taskflow_agent Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44"""ASCII banner displayed at agent startup."""
55
6+ from .__about__ import __version__
67from .capi import get_AI_endpoint
78
89__all__ = ["get_banner" ]
@@ -35,7 +36,7 @@ def get_banner() -> str:
3536 ║ ███████╗██║ ██║██████╔╝ ║
3637 ║ ╚══════╝╚═╝ ╚═╝╚═════╝ ║
3738 ║ ║
38- ║ TASKFLOW AGENT ║
39+ ║ TASKFLOW AGENT v { __version__ :<29 } ║
3940 ║ ║
4041 ╠══════════════════════════════════════════════════════════════════╣
4142 ║ Default AI API Endpoint: { api_endpoint :<40} ║
Original file line number Diff line number Diff line change 1111from seclab_taskflow_agent .cli import _parse_global
1212
1313
14+ class TestBanner :
15+ """Tests for startup banner rendering."""
16+
17+ def test_banner_includes_version (self , monkeypatch ):
18+ from seclab_taskflow_agent .__about__ import __version__
19+ from seclab_taskflow_agent .banner import get_banner
20+
21+ monkeypatch .setattr ("seclab_taskflow_agent.banner.get_AI_endpoint" , lambda : "https://example.test" )
22+
23+ banner = get_banner ()
24+
25+ assert f"v{ __version__ } " in banner
26+ assert "Default AI API Endpoint: https://example.test" in banner
27+
28+
1429class TestParseGlobal :
1530 """Tests for _parse_global KEY=VALUE parsing."""
1631
You can’t perform that action at this time.
0 commit comments