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