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

test: is_valid_frappe_branch()

This commit is contained in:
saxenabhishek 2022-03-01 18:11:46 +05:30
parent a1e1572937
commit 6609ad20c4

View File

@ -35,3 +35,10 @@ class TestUtils(unittest.TestCase):
),
"https://raw.github.com/frappe/frappe/version-13/frappe/hooks.py",
)
def test_is_valid_frappe_branch(self):
self.assertTrue(is_valid_frappe_branch("https://github.com/frappe/frappe", frappe_branch=""))
self.assertTrue(is_valid_frappe_branch("https://github.com/frappe/frappe", frappe_branch="develop"))
self.assertTrue(is_valid_frappe_branch("https://github.com/frappe/erpnext", frappe_branch="version-13"))
self.assertFalse(is_valid_frappe_branch("https://github.com/frappe/erpnext", frappe_branch="version-1"))