[minor] don't rollback when running all tests, fixed test cases

This commit is contained in:
Anand Doshi 2013-10-15 20:03:17 +05:30
parent b6d932a13f
commit 17bf5dd52b

View file

@ -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")