The license.txt file has been replaced with LICENSE for quite a while now. INAL but it didn't seem accurate to say "hey, checkout license.txt although there's no such file". Apart from this, there were inconsistencies in the headers altogether...this change brings consistency.
16 lines
496 B
Python
16 lines
496 B
Python
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
|
# License: MIT. See LICENSE
|
|
|
|
import frappe, unittest
|
|
|
|
from frappe.desk.form.linked_with import get_linked_docs, get_linked_doctypes
|
|
|
|
class TestForm(unittest.TestCase):
|
|
def test_linked_with(self):
|
|
results = get_linked_docs("Role", "System Manager", linkinfo=get_linked_doctypes("Role"))
|
|
self.assertTrue("User" in results)
|
|
self.assertTrue("DocType" in results)
|
|
|
|
if __name__=="__main__":
|
|
frappe.connect()
|
|
unittest.main()
|