Skip to content

Commit

Permalink
test: updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Aradhya-Tripathi committed Mar 27, 2022
1 parent fc0be25 commit 4252b11
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bench/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ def test_app_states(self):
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)

0 comments on commit 4252b11

Please sign in to comment.