test: Fix failing test

This commit is contained in:
Suraj Shetty 2021-08-19 19:33:37 +05:30
parent 133be72dfd
commit 07906594e3
3 changed files with 3 additions and 3 deletions

View file

@ -534,7 +534,7 @@ class TestFileUtils(unittest.TestCase):
self.assertTrue(frappe.db.exists("File", {"attached_to_name": todo.name}))
self.assertIn('<img src="/files/pix.png">', todo.description)
# withot filename in data URI
# without filename in data URI
todo = frappe.get_doc({
"doctype": "ToDo",
"description": 'Test <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=">'

View file

@ -346,7 +346,7 @@ class TestUser(unittest.TestCase):
self.assertEqual(update_password(new_password, old_password=old_password), "/")
# reset password
update_password(old_password, old_password=new_password)
frappe.set_user("Administrator")
def test_password_verification(self):

View file

@ -55,6 +55,6 @@ def get_todo():
def get_user():
users = frappe.db.get_all('User',
filters={'name': ('not in', ['Administrator', 'Guest'])},
filters={'name': ('not in', ['Administrator', 'Guest']), 'enabled': 1},
fields='name', limit=1)
return users[0].name