From 17bf5dd52b7b2dde2be4c8956bf2fbcb1dbbe215 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 15 Oct 2013 20:03:17 +0530 Subject: [PATCH] [minor] don't rollback when running all tests, fixed test cases --- core/doctype/profile/test_profile.py | 2 ++ 1 file changed, 2 insertions(+) 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")