From 9ca768a32c3d69ff5855a72e3176806755346f67 Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Fri, 28 Jan 2022 12:12:30 +0530 Subject: [PATCH] fix(test): Update test_virtual_fields --- frappe/tests/test_document.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frappe/tests/test_document.py b/frappe/tests/test_document.py index 8027bde504..bc00a4677a 100644 --- a/frappe/tests/test_document.py +++ b/frappe/tests/test_document.py @@ -267,8 +267,8 @@ class TestDocument(unittest.TestCase): # assuming DocType has more that 3 Data fields self.assertEquals(len(doc.get("fields", filters={"fieldtype": "Data"}, limit=3)), 3) - def test_dynamic_fields(self): - """Read Only Dynamic fields are accessible via API and Form views, whenever .as_dict is invoked + def test_virtual_fields(self): + """Virtual fields are accessible via API and Form views, whenever .as_dict is invoked """ frappe.db.delete("Custom Field", {"dt": "Note", "fieldname":"age"}) @@ -283,6 +283,7 @@ class TestDocument(unittest.TestCase): "fieldname": "age", "fieldtype": "Data", "read_only": True, + "is_virtual": True, }) try: