From 47523c7db933a0c8de7c0545c2525dff63c7165c Mon Sep 17 00:00:00 2001 From: Crispen Gari Date: Thu, 8 Feb 2024 15:07:27 +0200 Subject: [PATCH] testing-pytest --- dataloom/tests/mysql/test_connection_mysql.py | 8 ++++---- hi.db | Bin 61440 -> 61440 bytes 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dataloom/tests/mysql/test_connection_mysql.py b/dataloom/tests/mysql/test_connection_mysql.py index 441a2da..f771f7c 100644 --- a/dataloom/tests/mysql/test_connection_mysql.py +++ b/dataloom/tests/mysql/test_connection_mysql.py @@ -32,10 +32,10 @@ def test_connect_with_wrong_password(self): with pytest.raises(connector.errors.ProgrammingError) as exc_info: conn = mysql_loom.connect() conn.close() - assert ( - exc_info.value.msg - == "Access denied for user 'root'@'localhost' (using password: YES)" - ) + + assert str(exc_info.value.msg).startswith( + "Access denied for user 'root'@'" + ) and str(exc_info.value.msg).endswith("(using password: YES)") assert exc_info.value.errno == 1045 def test_connect_with_wrong_user(self): diff --git a/hi.db b/hi.db index 094c37066ef165f515079ba9d2b4ec0dc46036f1..b9b03b8cde25cf637425b32af1d22a821bc01fc0 100644 GIT binary patch delta 326 zcmZp8z})bFd4jay4+aJXejtVdWwwbr#*9BECdhH|N^qRuyT~z_P+ocx+cm%B;(gcrNGxHw~r>EzvPikpA)F*8nf=L==Dm^_!ygr!OI zgwJLN;%^&^w7XSb~o>1}t delta 328 zcmZp8z})bFd4jZHKLY~;KM+HK(xHhu#*FmEzdXF?qA1z1=FF zny(qu*~LXg8C!}=5|eUL3-XIg3fPW&vw^jm0^90A{t9+V_lim438OVzNr^-vDK*eNP*f