From 4a2a6382ad91b74883db6da61f3e426abf124ebb Mon Sep 17 00:00:00 2001 From: William Welter Date: Tue, 16 Jan 2024 14:36:48 +0000 Subject: [PATCH] Adding lines to fix sanity checks --- tests/unit/plugins/module_utils/test_mysql.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/unit/plugins/module_utils/test_mysql.py b/tests/unit/plugins/module_utils/test_mysql.py index df0b4af..4d57100 100644 --- a/tests/unit/plugins/module_utils/test_mysql.py +++ b/tests/unit/plugins/module_utils/test_mysql.py @@ -24,6 +24,7 @@ def test_get_server_version(cursor_return_version, cursor_return_type): cursor = dummy_cursor_class(cursor_return_version, cursor_return_type) assert get_server_version(cursor) == cursor_return_version + @pytest.mark.parametrize( 'cursor_return_version,cursor_return_type,server_implementation', [ @@ -41,6 +42,7 @@ def test_get_server_implamentation(cursor_return_version, cursor_return_type, se assert get_server_implementation(cursor) == server_implementation + def test_is_mysql(): """ Test that server is_mysql return expect results @@ -48,6 +50,7 @@ def test_is_mysql(): assert is_mysql("mysql") is True assert is_mysql("mariadb") is False + def test_is_mariadb(): """ Test that server is_mariadb return expect results