mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-06 12:04:00 +00:00
chore: remove framework tests from erpnext
Similar tests exist in FW and this is failing because someone updated the translations
This commit is contained in:
@@ -1,19 +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_full_dict = None # reset cached translations
|
||||
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"
|
||||
Reference in New Issue
Block a user