From 080a31f4f9c676627e2b79969ae87b00aa6583a7 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 17 Dec 2016 14:03:18 +0200 Subject: [PATCH] - Filled in all tests. - Updated documentation. --- README.rst | 4 +++- tests/test_mysql.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 85e8b8d..87ce2b2 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 9ca0416..4afa144 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): -- GitLab