mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-08 11:40:33 -07:00
Fix unit tests
This commit is contained in:
parent
6eec7404b3
commit
4c5e8f8bb1
1 changed files with 18 additions and 2 deletions
|
@ -36,6 +36,14 @@ def test_get_info_suffix(suffix, cursor_output, server_implementation):
|
||||||
|
|
||||||
assert info.get_info([], [], False)['version']['suffix'] == suffix
|
assert info.get_info([], [], False)['version']['suffix'] == suffix
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize(
|
||||||
|
'server_implementation',
|
||||||
|
[
|
||||||
|
('mysql'),
|
||||||
|
('mariadb'),
|
||||||
|
]
|
||||||
|
)
|
||||||
def test_is_mariadb(server_implementation):
|
def test_is_mariadb(server_implementation):
|
||||||
cursor = MagicMock()
|
cursor = MagicMock()
|
||||||
|
|
||||||
|
@ -43,6 +51,14 @@ def test_is_mariadb(server_implementation):
|
||||||
|
|
||||||
assert info.is_mariadb() == (server_implementation == "mariadb")
|
assert info.is_mariadb() == (server_implementation == "mariadb")
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize(
|
||||||
|
'server_implementation',
|
||||||
|
[
|
||||||
|
('mysql'),
|
||||||
|
('mariadb'),
|
||||||
|
]
|
||||||
|
)
|
||||||
def test_is_mysql(server_implementation):
|
def test_is_mysql(server_implementation):
|
||||||
cursor = MagicMock()
|
cursor = MagicMock()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue