2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-13 16:56:33 +00:00

test: get_required_deps_url()

This commit is contained in:
saxenabhishek 2022-03-01 18:11:13 +05:30
parent a26f3ce564
commit a1e1572937

View File

@ -23,3 +23,15 @@ class TestUtils(unittest.TestCase):
]
)
)
def test_get_required_deps_url(self):
self.assertEqual(
get_required_deps_url(git_url="https://github.com/frappe/frappe.git", branch=None, repo_name="frappe"),
"https://raw.github.com/frappe/frappe/develop/frappe/hooks.py",
)
self.assertEqual(
get_required_deps_url(
git_url="https://github.com/frappe/frappe.git", branch="version-13", repo_name="frappe"
),
"https://raw.github.com/frappe/frappe/version-13/frappe/hooks.py",
)