mirror of
https://github.com/frappe/bench.git
synced 2025-01-08 16:14:12 +00:00
test: removed required urls tests as it's covered in test_get_dependencies
This commit is contained in:
parent
ca4530528c
commit
fbee987490
@ -4,8 +4,7 @@ import unittest
|
||||
|
||||
from bench.app import App
|
||||
from bench.bench import Bench
|
||||
from bench.utils import exec_cmd, is_valid_frappe_branch
|
||||
from bench.utils.app import get_required_deps_url
|
||||
from bench.utils import is_valid_frappe_branch
|
||||
|
||||
|
||||
class TestUtils(unittest.TestCase):
|
||||
@ -27,18 +26,6 @@ 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",
|
||||
)
|
||||
|
||||
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"))
|
||||
|
Loading…
Reference in New Issue
Block a user