feat: add federation_key to DEFAULT_SETTINGS

This commit is contained in:
Brian Krabach
2026-04-01 10:03:11 -07:00
parent 1dcf1fc2f3
commit b884f7affd
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -26,6 +26,7 @@ DEFAULT_SETTINGS: dict = {
"device_name": "", "device_name": "",
"delete_session_template": "tmux kill-session -t {name}", "delete_session_template": "tmux kill-session -t {name}",
"multi_device_enabled": False, "multi_device_enabled": False,
"federation_key": "",
} }
+6
View File
@@ -377,6 +377,12 @@ def test_serve_keys_patchable():
assert loaded["session_ttl"] == 3600 assert loaded["session_ttl"] == 3600
def test_defaults_include_federation_key():
"""DEFAULT_SETTINGS must have 'federation_key' key initialised to empty string."""
assert "federation_key" in DEFAULT_SETTINGS
assert DEFAULT_SETTINGS["federation_key"] == ""
def test_old_settings_file_without_serve_keys_loads_correctly(redirect_settings_path): def test_old_settings_file_without_serve_keys_loads_correctly(redirect_settings_path):
"""Old settings.json without serve keys loads correctly with defaults filled in.""" """Old settings.json without serve keys loads correctly with defaults filled in."""
# Write an old-style settings file that has no serve keys # Write an old-style settings file that has no serve keys