aboutsummaryrefslogtreecommitdiff
path: root/scripts/test_config_reference_check.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test_config_reference_check.py')
-rw-r--r--scripts/test_config_reference_check.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/test_config_reference_check.py b/scripts/test_config_reference_check.py
index 317aae8a..b5a804b1 100644
--- a/scripts/test_config_reference_check.py
+++ b/scripts/test_config_reference_check.py
@@ -32,6 +32,8 @@ pub struct UiConfig {
pub sidebar_width: u16,
/// Host cursor policy. Default: auto.
pub host_cursor: HostCursorModeConfig,
+ /// Tab bar status entries.
+ pub tab_bar_right: Vec<TabBarRightEntryConfig>,
#[serde(rename = "accent_color")]
pub accent: String,
#[serde(skip)]
@@ -64,6 +66,19 @@ pub enum HostCursorModeConfig {
}
#[derive(Debug, Deserialize)]
+#[serde(tag = "type", rename_all = "snake_case")]
+pub enum TabBarRightEntryConfig {
+ Hostname,
+ Datetime {
+ format: String,
+ },
+ Command {
+ command: String,
+ interval_seconds: u64,
+ },
+}
+
+#[derive(Debug, Deserialize)]
#[serde(untagged)]
pub enum BindingConfig {
One(String),
@@ -129,6 +144,10 @@ class CollectKeysTests(unittest.TestCase):
self.assertEqual(
entries["ui.host_cursor"]["values"], ["auto", "native-cursor", "drawn"]
)
+ self.assertEqual(
+ entries["ui.tab_bar_right"]["values"],
+ ["hostname", "datetime", "command"],
+ )
self.assertNotIn("values", entries["keys.zoom"])