From c3c579bdc50858f7b4bcb13fc3ccd9d5b0b1c8c7 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Fri, 10 May 2024 11:08:49 +0530 Subject: [PATCH] test: update asset size values --- frappe/tests/test_commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frappe/tests/test_commands.py b/frappe/tests/test_commands.py index 89790c600a..68e5ed30fc 100644 --- a/frappe/tests/test_commands.py +++ b/frappe/tests/test_commands.py @@ -892,12 +892,12 @@ class TestAddNewUser(BaseTestCommands): class TestBenchBuild(BaseTestCommands): def test_build_assets_size_check(self): - with cli(frappe.commands.utils.build, "--force --production") as result: + with cli(frappe.commands.utils.build, "--force --production --app frappe") as result: self.assertEqual(result.exit_code, 0) self.assertEqual(result.exception, None) - CURRENT_SIZE = 3.5 # MB - JS_ASSET_THRESHOLD = 0.1 + CURRENT_SIZE = 3.3 # MB + JS_ASSET_THRESHOLD = 0.05 hooks = frappe.get_hooks() default_bundle = hooks["app_include_js"]