mirror of
https://github.com/frappe/bench.git
synced 2024-11-16 01:57:08 +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.app import App
|
||||||
from bench.bench import Bench
|
from bench.bench import Bench
|
||||||
from bench.utils import exec_cmd, is_valid_frappe_branch
|
from bench.utils import is_valid_frappe_branch
|
||||||
from bench.utils.app import get_required_deps_url
|
|
||||||
|
|
||||||
|
|
||||||
class TestUtils(unittest.TestCase):
|
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):
|
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=""))
|
||||||
self.assertTrue(is_valid_frappe_branch("https://github.com/frappe/frappe", frappe_branch="develop"))
|
self.assertTrue(is_valid_frappe_branch("https://github.com/frappe/frappe", frappe_branch="develop"))
|
||||||
|
Loading…
Reference in New Issue
Block a user