aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-12-09 10:40:42 -0600
committerFrederick Muriuki Muriithi2024-12-09 11:33:41 -0600
commit5f5e33daaf909a5dbc5b0a1730c7510f19576548 (patch)
tree1fa7a0182efb8e08b2e7947b76042477bd5b902c /tests/unit
parent0e26bfd28f27603e7039b51cbdf596c58065c6c6 (diff)
downloadgn-libs-5f5e33daaf909a5dbc5b0a1730c7510f19576548.tar.gz
Parse for SSL_MODE option values from a list of acceptable values.
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/test_mysqldb.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/test_mysqldb.py b/tests/unit/test_mysqldb.py
index 153f322..793dc1d 100644
--- a/tests/unit/test_mysqldb.py
+++ b/tests/unit/test_mysqldb.py
@@ -88,7 +88,10 @@ def test_parse_db_url_with_invalid_options(sql_uri, invalidopt):
(("mysql://auser:passwd@somehost:3307/thedb?use_unicode=fire"),
("mysql://auser:passwd@somehost:3307/thedb?use_unicode=3"),
("mysql://auser:passwd@somehost:3307/thedb?connect_timeout=-30"),
- ("mysql://auser:passwd@somehost:3307/thedb?connect_timeout=santa")))
+ ("mysql://auser:passwd@somehost:3307/thedb?connect_timeout=santa"),
+ ("mysql://auser:passwd@somehost:3307/thedb?ssl_mode=yellow"),
+ ("mysql://auser:passwd@somehost:3307/thedb?ssl_mode=55"),
+ ("mysql://auser:passwd@somehost:3307/thedb?ssl_mode=true")))
def test_parse_db_url_with_invalid_options_values(sql_uri):
"""Test parsing with invalid options' values."""
with pytest.raises(InvalidOptionValue) as iov: