test: avoid rebuilding assets
This commit is contained in:
parent
e137e36180
commit
6b0d13a5bf
2 changed files with 2 additions and 6 deletions
2
.github/actions/setup/action.yml
vendored
2
.github/actions/setup/action.yml
vendored
|
|
@ -216,7 +216,7 @@ runs:
|
||||||
start_time=$(date +%s)
|
start_time=$(date +%s)
|
||||||
|
|
||||||
source ${GITHUB_WORKSPACE}/env/bin/activate
|
source ${GITHUB_WORKSPACE}/env/bin/activate
|
||||||
CI=Yes bench build &
|
CI=Yes bench build --force --production &
|
||||||
build_pid=$!
|
build_pid=$!
|
||||||
bench --site test_site reinstall --yes
|
bench --site test_site reinstall --yes
|
||||||
wait $build_pid
|
wait $build_pid
|
||||||
|
|
|
||||||
|
|
@ -897,12 +897,8 @@ class TestAddNewUser(BaseTestCommands):
|
||||||
self.assertEqual({"Accounts User", "Sales User"}, roles)
|
self.assertEqual({"Accounts User", "Sales User"}, roles)
|
||||||
|
|
||||||
|
|
||||||
class TestBenchBuild(BaseTestCommands):
|
class TestBenchBuild(IntegrationTestCase):
|
||||||
def test_build_assets_size_check(self):
|
def test_build_assets_size_check(self):
|
||||||
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.3 # MB
|
CURRENT_SIZE = 3.3 # MB
|
||||||
JS_ASSET_THRESHOLD = 0.01
|
JS_ASSET_THRESHOLD = 0.01
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue