Add configurable grid branding

This commit is contained in:
Jage9
2026-03-09 01:21:02 -04:00
parent 25a71e0a77
commit 6aaa49bed3
12 changed files with 83 additions and 6 deletions

View File

@@ -59,3 +59,20 @@ base_path = "/ttgrid/"
)
cfg = load_config(config_path)
assert cfg.server.base_path == "/ttgrid/"
def test_load_config_reads_grid_name_and_welcome_message(tmp_path: Path) -> None:
config_path = tmp_path / "config.toml"
config_path.write_text(
"""
[network]
allow_insecure_ws = true
[server]
grid_name = "TT Grid"
welcome_message = "Welcome to TT Grid."
""".strip()
)
cfg = load_config(config_path)
assert cfg.server.grid_name == "TT Grid"
assert cfg.server.welcome_message == "Welcome to TT Grid."