From 215507a742b5cbc0626324a416a5b18ede804dbf Mon Sep 17 00:00:00 2001 From: phot0n Date: Sat, 18 Jun 2022 10:45:40 +0530 Subject: [PATCH] test: add list value in test_modify_values --- frappe/tests/test_db.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frappe/tests/test_db.py b/frappe/tests/test_db.py index 73b5446404..31fccd0132 100644 --- a/frappe/tests/test_db.py +++ b/frappe/tests/test_db.py @@ -834,10 +834,13 @@ class TestDDLCommandsPost(unittest.TestCase): from frappe.database.postgres.database import modify_values self.assertEqual( - {"abcd": "23", "efgh": "23", "ijkl": 23.0345, "mnop": "wow"}, - modify_values({"abcd": 23, "efgh": 23.0, "ijkl": 23.0345, "mnop": "wow"}), + {"a": "23", "b": 23.0, "c": 23.0345, "d": "wow", "e": ("1", "2", "3", "abc")}, + modify_values({"a": 23, "b": 23.0, "c": 23.0345, "d": "wow", "e": [1, 2, 3, "abc"]}), + ) + self.assertEqual( + ["23", 23.0, 23.00004345, "wow", ("1", "2", "3", "abc")], + modify_values((23, 23.0, 23.00004345, "wow", [1, 2, 3, "abc"])), ) - self.assertEqual(["23", "23", 23.00004345, "wow"], modify_values((23, 23.0, 23.00004345, "wow"))) def test_sequence_table_creation(self): from frappe.core.doctype.doctype.test_doctype import new_doctype