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 04797ce commit 47523c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dataloom/tests/mysql/test_connection_mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Binary file modified hi.db
Binary file not shown.

0 comments on commit 47523c7

Please sign in to comment.