fix(test_server_script): this is applicable to mariadb+sqlite
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
9fa330c075
commit
aed2c65cd2
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ class TestServerScript(IntegrationTestCase):
|
|||
self.assertEqual(frappe.get_doc("Server Script", "test_return_value").execute_method(), "hello")
|
||||
|
||||
def test_permission_query(self):
|
||||
if frappe.conf.db_type == "mariadb":
|
||||
if frappe.conf.db_type != "postgres":
|
||||
self.assertTrue("where (1 = 1)" in frappe.db.get_list("ToDo", run=False))
|
||||
else:
|
||||
self.assertTrue("where (1 = '1')" in frappe.db.get_list("ToDo", run=False))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue