From cfba07df07a542d7558c756e1e9407f5ee13998a Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Thu, 11 Aug 2022 14:35:04 +0530 Subject: [PATCH] test: Add test for bench_helper module --- frappe/tests/test_commands.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frappe/tests/test_commands.py b/frappe/tests/test_commands.py index cb8c3d266b..86d9075561 100644 --- a/frappe/tests/test_commands.py +++ b/frappe/tests/test_commands.py @@ -713,3 +713,12 @@ class TestBenchBuild(BaseTestCommands): CURRENT_SIZE * (1 + JS_ASSET_THRESHOLD), f"Default JS bundle size increased by {JS_ASSET_THRESHOLD:.2%} or more", ) + + +class TestCommandUtils(unittest.TestCase): + def test_bench_helper(self): + from frappe.utils.bench_helper import get_app_groups + + app_groups = get_app_groups() + self.assertIn("frappe", app_groups) + self.assertIsInstance(app_groups["frappe"], click.Group)