[PR #508/9b8455c2 backport][stable-1] Fix sanity (#510)

* Fix sanity (#508)

* Fix sanity

* Remove as unnecessary

(cherry picked from commit 9b8455c2e6)

* Update tests/unit/plugins/modules/test_mysql_user.py

---------

Co-authored-by: Andrew Klychkov <aklychko@redhat.com>
This commit is contained in:
patchback[bot] 2023-02-14 14:59:16 +01:00 committed by GitHub
parent 8687e575d7
commit 62e2ed5d36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 2 additions and 22 deletions

View file

@ -8,7 +8,6 @@ try:
from unittest.mock import MagicMock
except ImportError:
from mock import MagicMock
from ansible_collections.community.mysql.plugins.modules.mysql_user import (
handle_grant_on_col,
has_grant_on_col,
@ -16,7 +15,6 @@ from ansible_collections.community.mysql.plugins.modules.mysql_user import (
sort_column_order,
handle_requiressl_in_priv_string
)
from ..utils import dummy_cursor_class
@pytest.mark.parametrize(