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:
parent
fc0be250c2
commit
4252b1100e
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user