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

test: removed required urls tests as it's covered in test_get_dependencies

This commit is contained in:
Aradhya 2022-03-02 23:08:31 +05:30
parent ca4530528c
commit fbee987490

View File

@ -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"))