2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-28 06:49:06 +00:00

test: get_dependencies()

This commit is contained in:
saxenabhishek 2022-03-02 15:11:18 +05:30
parent 03a435330b
commit 7ea09ce7c9

View File

@ -78,3 +78,9 @@ class TestUtils(unittest.TestCase):
self.assertEqual("11.0", fake_bench.apps.states["frappe"]["version"])
shutil.rmtree(bench_dir)
def test_get_dependencies(self):
fake_app = App("frappe/healthcare@develop")
self.assertIn("erpnext", fake_app._get_dependencies())
fake_app = App("frappe/not_healthcare@not-a-branch")
self.assertTrue(len(fake_app._get_dependencies()) == 0)