mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-06 10:40:36 -07:00
Adding lines to fix sanity checks
This commit is contained in:
parent
aa7c5be84a
commit
4a2a6382ad
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue