Skip to content

Commit

Permalink
update-test files
Browse files Browse the repository at this point in the history
  • Loading branch information
CrispenGari committed Feb 22, 2024
1 parent 071d12e commit 4f58e56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dataloom/tests/mysql/test_connection_uri_mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_connect_with_wrong_password(self):

mysql_loom = Loom(
dialect="mysql",
connection_uri=f"mysql://{MySQLConfig.user}:{MySQLConfig.password+'me'}@{MySQLConfig.host}:{MySQLConfig.port}/hi",
connection_uri=f"mysql://{MySQLConfig.user}:{MySQLConfig.password+'me'}@{MySQLConfig.host}:{MySQLConfig.port}/{MySQLConfig.database}",
)
with pytest.raises(connector.errors.ProgrammingError) as exc_info:
conn = mysql_loom.connect()
Expand All @@ -40,7 +40,7 @@ def test_connect_with_wrong_user(self):

mysql_loom = Loom(
dialect="mysql",
connection_uri=f"mysql://hey:{MySQLConfig.password}@{MySQLConfig.host}:{MySQLConfig.port}/hi",
connection_uri=f"mysql://hey:{MySQLConfig.password}@{MySQLConfig.host}:{MySQLConfig.port}/{MySQLConfig.database}",
)
with pytest.raises(connector.errors.ProgrammingError) as exc_info:
conn = mysql_loom.connect()
Expand All @@ -58,7 +58,7 @@ def test_connect_with_wrong_dialect(self):
with pytest.raises(UnsupportedDialectException) as exc_info:
mysql_loom = Loom(
dialect="dialect",
connection_uri=f"mysql://{MySQLConfig.user}:{MySQLConfig.password}@{MySQLConfig.host}:{MySQLConfig.port}/hi",
connection_uri=f"mysql://{MySQLConfig.user}:{MySQLConfig.password}@{MySQLConfig.host}:{MySQLConfig.port}/{MySQLConfig.database}",
)
conn = mysql_loom.connect()
conn.close()
Expand All @@ -74,7 +74,7 @@ def test_connect_correct_connection(self):

mysql_loom = Loom(
dialect="mysql",
connection_uri=f"mysql://{MySQLConfig.user}:{MySQLConfig.password}@{MySQLConfig.host}:{MySQLConfig.port}/hi",
connection_uri=f"mysql://{MySQLConfig.user}:{MySQLConfig.password}@{MySQLConfig.host}:{MySQLConfig.port}/{MySQLConfig.database}",
)
conn = mysql_loom.connect()
conn.close()
Expand Down

0 comments on commit 4f58e56

Please sign in to comment.