mirror of
https://github.com/frappe/bench.git
synced 2024-11-17 18:45:19 +00:00
test: Added tests for frappe tags
This commit is contained in:
parent
19f932513f
commit
e7055fc6d9
@ -35,6 +35,7 @@ class TestUtils(unittest.TestCase):
|
||||
is_valid_frappe_branch("https://github.com/random/random.git", frappe_branch="random-branch")
|
||||
|
||||
is_valid_frappe_branch("https://github.com/frappe/frappe.git", frappe_branch="develop")
|
||||
is_valid_frappe_branch("https://github.com/frappe/frappe.git", frappe_branch="v13.29.0")
|
||||
|
||||
def test_app_states(self):
|
||||
bench_dir = "./sandbox"
|
||||
|
@ -50,6 +50,7 @@ def is_frappe_app(directory: str) -> bool:
|
||||
return bool(is_frappe_app)
|
||||
|
||||
|
||||
@lru_cache(maxsize=None)
|
||||
def is_valid_frappe_branch(frappe_path:str, frappe_branch:str):
|
||||
"""Check if a branch exists in a repo. Throws InvalidRemoteException if branch is not found
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user