From b08fbd8a241eccb717c00de313248d2e1d75a18f Mon Sep 17 00:00:00 2001 From: "courtmanr@gmail.com" Date: Thu, 22 Oct 2026 17:00:53 +0100 Subject: [PATCH] Match the Mail Gateway window check to the shared drawer The PMG help says to compare the same time window in PMG, and its docs check pinned the old drawer's `stats()?.timeframe` read. The Mail tab is now headless mail-flow content inside the shared resource drawer and names the window on its Mail flow card from the same field (`stats?.timeframe`); the check now accepts either spelling, so the help still has to describe a window the drawer actually shows. --- scripts/tests/test_pmg_docs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/tests/test_pmg_docs.py b/scripts/tests/test_pmg_docs.py index c88b477a2b..9439562036 100644 --- a/scripts/tests/test_pmg_docs.py +++ b/scripts/tests/test_pmg_docs.py @@ -70,7 +70,8 @@ class PMGDocsTest(unittest.TestCase): drawer = frontend("features/proxmox/ProxmoxMailGatewayDrawer.tsx") self.assertIn(".slice(0, 8)", drawer) self.assertIn("top eight reported domains, not the entire domain inventory", self.guide) - self.assertIn("stats()?.timeframe", drawer) + # The mail-flow card names the window its counts cover. + self.assertRegex(drawer, r"stats(?:\(\))?\??\.timeframe") self.assertIn("compare the same window in PMG", self.guide) self.assertIn("Expand the intended gateway's row", self.guide)