Adding lines to fix sanity checks

This commit is contained in:
William Welter 2024-01-16 14:36:48 +00:00
parent aa7c5be84a
commit 4a2a6382ad

View file

@ -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) cursor = dummy_cursor_class(cursor_return_version, cursor_return_type)
assert get_server_version(cursor) == cursor_return_version assert get_server_version(cursor) == cursor_return_version
@pytest.mark.parametrize( @pytest.mark.parametrize(
'cursor_return_version,cursor_return_type,server_implementation', '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 assert get_server_implementation(cursor) == server_implementation
def test_is_mysql(): def test_is_mysql():
""" """
Test that server is_mysql return expect results 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("mysql") is True
assert is_mysql("mariadb") is False assert is_mysql("mariadb") is False
def test_is_mariadb(): def test_is_mariadb():
""" """
Test that server is_mariadb return expect results Test that server is_mariadb return expect results