test(postgres): add pg-compatible query for test_db_cli_with_sql
This commit is contained in:
parent
27eca4f74c
commit
2feb536ec9
1 changed files with 4 additions and 2 deletions
|
|
@ -1003,9 +1003,11 @@ class TestDBCli(BaseTestCommands):
|
|||
self.execute("bench --site {site} db-console", kwargs={"cmd_input": cmd_input})
|
||||
self.assertEqual(self.returncode, 0)
|
||||
|
||||
@run_only_if(db_type_is.MARIADB)
|
||||
def test_db_cli_with_sql(self):
|
||||
self.execute("bench --site {site} db-console -e 'select 1'")
|
||||
if frappe.db.db_type == "postgres":
|
||||
self.execute("bench --site {site} db-console -c 'select 1'")
|
||||
elif frappe.db.db_type == "mariadb":
|
||||
self.execute("bench --site {site} db-console -e 'select 1'")
|
||||
self.assertEqual(self.returncode, 0)
|
||||
self.assertIn("1", self.stdout)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue