test: Add test for db-console pass extra params to client
Added test for https://github.com/frappe/frappe/pull/19809
This commit is contained in:
parent
32cf13cb29
commit
c337e532d8
1 changed files with 6 additions and 0 deletions
|
|
@ -773,3 +773,9 @@ class TestDBCli(BaseTestCommands):
|
|||
def test_db_cli(self):
|
||||
self.execute("bench --site {site} db-console", kwargs={"cmd_input": rb"\q"})
|
||||
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'")
|
||||
self.assertEqual(self.returncode, 0)
|
||||
self.assertIn("1", self.stdout)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue