2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 08:16:28 +00:00

test: updated tests

This commit is contained in:
Aradhya 2022-03-27 16:54:30 +05:30
parent fc0be250c2
commit 4252b1100e

View File

@ -75,7 +75,10 @@ class TestUtils(unittest.TestCase):
shutil.rmtree(bench_dir) shutil.rmtree(bench_dir)
def test_get_dependencies(self): 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()) 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) self.assertTrue(len(fake_app._get_dependencies()) == 0)