Skip to content

Commit

Permalink
testing-pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
CrispenGari committed Feb 8, 2024
1 parent 47523c7 commit 98fdab5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dataloom/tests/mysql/test_connection_mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ def test_connect_with_wrong_user(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 'hey'@'localhost' (using password: YES)"
)
assert str(exc_info.value.msg).startswith(
"Access denied for user 'hey'@"
) and str(exc_info.value.msg).endswith("(using password: YES)")
assert exc_info.value.errno == 1045

def test_connect_with_wrong_dialect(self):
Expand Down

0 comments on commit 98fdab5

Please sign in to comment.