From 4252b1100ec60bdc77964c55045ae43e2c59fa65 Mon Sep 17 00:00:00 2001 From: Aradhya Date: Sun, 27 Mar 2022 16:54:30 +0530 Subject: [PATCH] test: updated tests --- bench/tests/test_utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bench/tests/test_utils.py b/bench/tests/test_utils.py index 69e959f5..d61e714b 100644 --- a/bench/tests/test_utils.py +++ b/bench/tests/test_utils.py @@ -75,7 +75,10 @@ class TestUtils(unittest.TestCase): shutil.rmtree(bench_dir) def test_get_dependencies(self): - fake_app = App("frappe/healthcare@develop") + git_url = "https://github.com/frappe/healthcare" + branch = "develop" + fake_app = App(git_url, branch=branch) self.assertIn("erpnext", fake_app._get_dependencies()) - fake_app = App("frappe/not_healthcare@not-a-branch") + git_url = git_url.replace("healthcare", "erpnext") + fake_app = App(git_url) self.assertTrue(len(fake_app._get_dependencies()) == 0)