diff --git a/core/doctype/profile/test_profile.py b/core/doctype/profile/test_profile.py index 7a2b822757..b0e8961d60 100644 --- a/core/doctype/profile/test_profile.py +++ b/core/doctype/profile/test_profile.py @@ -22,6 +22,8 @@ class TestProfile(unittest.TestCase): self.assertTrue(not webnotes.conn.sql("""select * from `tabToDo` where owner=%s""", "_test@example.com")) + webnotes.bean({"doctype": "Role", "role_name": "_Test Role 2"}).insert() + def test_get_value(self): self.assertEquals(webnotes.conn.get_value("Profile", "test@example.com"), "test@example.com") self.assertEquals(webnotes.conn.get_value("Profile", {"email":"test@example.com"}), "test@example.com")