mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00:00
Merge branch 'develop' of https://github.com/frappe/erpnext into move-exotel-to-separate-app
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user