diff --git a/README.rst b/README.rst index 85e8b8dc8109f41eceddaa87713cf4697dc739b2..87ce2b26959d92f8f61782d8a631e40be3b14b14 100644 --- a/README.rst +++ b/README.rst @@ -67,4 +67,6 @@ at: https://www.shore.co.il/git/. TODO ---- -- Testing. +- More thorough, applicative tests. +- A backup script that saves each database in its own file but in a single + transaction without locking. diff --git a/tests/test_mysql.py b/tests/test_mysql.py index 9ca041637f8fe9b613430c98d54f1a5e5e896289..4afa14472f4ec835d68b73da1d6c39a4dea1d204 100644 --- a/tests/test_mysql.py +++ b/tests/test_mysql.py @@ -21,7 +21,9 @@ def test_mysql_ssl_group(User): def test_mysql_admin_account(Command, Sudo): - pass + with Sudo(): + 'localhost' in Command( + '''mysql --defaults-file=/etc/mysql/debian.cnf --database mysql --execute 'select Host from user where User="admin"' ''').stdout # noqa: E501 def test_mysql_backup_job(Command, Sudo):