From 356dd8efe5b3b936025235cb3cba93364d44ea9f Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Tue, 12 May 2020 12:39:58 +0530 Subject: [PATCH] test: fixed get-app case --- bench/tests/test_init.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bench/tests/test_init.py b/bench/tests/test_init.py index 8744a4a8..d1dd7662 100755 --- a/bench/tests/test_init.py +++ b/bench/tests/test_init.py @@ -11,10 +11,7 @@ import git import bench import bench.utils from bench.release import get_bumped_version -from bench.tests.test_base import TestBenchBase - - -ERPNEXT_BRANCH = bench.tests.test_base.FRAPPE_BRANCH +from bench.tests.test_base import TestBenchBase, FRAPPE_BRANCH class TestBenchInit(TestBenchBase): @@ -102,7 +99,7 @@ class TestBenchInit(TestBenchBase): self.init_bench(bench_name) bench.utils.exec_cmd("bench setup requirements --node", cwd=bench_path) bench.utils.exec_cmd("bench build", cwd=bench_path) - bench.utils.exec_cmd("bench get-app erpnext", cwd=bench_path) + bench.utils.exec_cmd("bench get-app erpnext --branch {0}".format(FRAPPE_BRANCH), cwd=bench_path) self.assertTrue(os.path.exists(os.path.join(bench_path, "apps", "erpnext"))) @@ -112,7 +109,7 @@ class TestBenchInit(TestBenchBase): # create and install app on site self.new_site(site_name, bench_name) - installed_erpnext = not bench.utils.exec_cmd("bench --site {0} install-app erpnext --branch {1}".format(site_name, ERPNEXT_BRANCH), cwd=bench_path) + installed_erpnext = not bench.utils.exec_cmd("bench --site {0} install-app erpnext".format(site_name), cwd=bench_path) app_installed_on_site = subprocess.check_output(["bench", "--site", site_name, "list-apps"], cwd=bench_path).decode('utf8')