mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 08:30:39 +00:00
test: is_valid_frappe_branch()
This commit is contained in:
parent
a1e1572937
commit
6609ad20c4
@ -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"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user