Merge branch 'develop' of https://github.com/frappe/erpnext into move-exotel-to-separate-app

This commit is contained in:
Suraj Shetty
2022-07-22 12:24:20 +05:30
1603 changed files with 32272 additions and 158414 deletions

View File

@@ -40,3 +40,13 @@ class TestInit(unittest.TestCase):
enc_name == expected_names[i],
"{enc} is not same as {exp}".format(enc=enc_name, exp=expected_names[i]),
)
def test_translation_files(self):
from frappe.tests.test_translate import verify_translation_files
verify_translation_files("erpnext")
def test_patches(self):
from frappe.tests.test_patches import check_patch_files
check_patch_files("erpnext")

View File

@@ -12,9 +12,6 @@ def test_method():
class TestInit(unittest.TestCase):
def test_regional_overrides(self):
frappe.flags.country = "India"
self.assertEqual(test_method(), "overridden")
frappe.flags.country = "Maldives"
self.assertEqual(test_method(), "original")

View File

@@ -1,18 +0,0 @@
import unittest
import frappe
from frappe.contacts.address_and_contact import filter_dynamic_link_doctypes
class TestSearch(unittest.TestCase):
# Search for the word "cond", part of the word "conduire" (Lead) in french.
def test_contact_search_in_foreign_language(self):
try:
frappe.local.lang = "fr"
output = filter_dynamic_link_doctypes(
"DocType", "cond", "name", 0, 20, {"fieldtype": "HTML", "fieldname": "contact_html"}
)
result = [["found" for x in y if x == "Lead"] for y in output]
self.assertTrue(["found"] in result)
finally:
frappe.local.lang = "en"

File diff suppressed because it is too large Load Diff