Skip to content

Commit 6aabf0c

Browse files
author
Kareem Zidane
committed
Update sql.py
1 parent ff9e69f commit 6aabf0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/sql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def tearDownClass(self):
150150
class MySQLTests(SQLTests):
151151
@classmethod
152152
def setUpClass(self):
153-
self.db = SQL("mysql://root@localhost/test")
153+
self.db = SQL("mysql://root@127.0.0.1/test")
154154

155155
def setUp(self):
156156
self.db.execute("CREATE TABLE IF NOT EXISTS cs50 (id INTEGER NOT NULL AUTO_INCREMENT, val VARCHAR(16), bin BLOB, PRIMARY KEY (id))")
@@ -160,7 +160,7 @@ def setUp(self):
160160
class PostgresTests(SQLTests):
161161
@classmethod
162162
def setUpClass(self):
163-
self.db = SQL("postgresql://postgres@localhost/test")
163+
self.db = SQL("postgresql://postgres:[email protected]/test")
164164

165165
def setUp(self):
166166
self.db.execute("CREATE TABLE IF NOT EXISTS cs50 (id SERIAL PRIMARY KEY, val VARCHAR(16), bin BYTEA)")

0 commit comments

Comments
 (0)