Skip to content

Commit 0bcf6b3

Browse files
author
Kareem Zidane
committed
Remove extra newlines
1 parent c2d12ee commit 0bcf6b3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tests/sql.py

-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010

1111
class SQLTests(unittest.TestCase):
12-
1312
def test_multiple_statements(self):
1413
self.assertRaises(RuntimeError, self.db.execute, "INSERT INTO cs50(val) VALUES('baz'); INSERT INTO cs50(val) VALUES('qux')")
1514

@@ -146,7 +145,6 @@ def tearDownClass(self):
146145
if not str(e).startswith("(1051"):
147146
raise e
148147

149-
150148
class MySQLTests(SQLTests):
151149
@classmethod
152150
def setUpClass(self):
@@ -156,7 +154,6 @@ def setUp(self):
156154
self.db.execute("CREATE TABLE IF NOT EXISTS cs50 (id INTEGER NOT NULL AUTO_INCREMENT, val VARCHAR(16), bin BLOB, PRIMARY KEY (id))")
157155
self.db.execute("DELETE FROM cs50")
158156

159-
160157
class PostgresTests(SQLTests):
161158
@classmethod
162159
def setUpClass(self):
@@ -174,7 +171,6 @@ def test_postgres_scheme(self):
174171
db.execute("SELECT 1")
175172

176173
class SQLiteTests(SQLTests):
177-
178174
@classmethod
179175
def setUpClass(self):
180176
open("test.db", "w").close()
@@ -286,7 +282,6 @@ def test_named(self):
286282
self.assertRaises(RuntimeError, self.db.execute, "INSERT INTO foo VALUES (:bar, :baz)", bar='bar', baz='baz', qux='qux')
287283
self.assertRaises(RuntimeError, self.db.execute, "INSERT INTO foo VALUES (:bar, :baz)", 'baz', bar='bar')
288284

289-
290285
def test_numeric(self):
291286
self.db.execute("CREATE TABLE foo (firstname STRING, lastname STRING)")
292287

@@ -322,7 +317,6 @@ def test_numeric(self):
322317
def test_cte(self):
323318
self.assertEqual(self.db.execute("WITH foo AS ( SELECT 1 AS bar ) SELECT bar FROM foo"), [{"bar": 1}])
324319

325-
326320
if __name__ == "__main__":
327321
suite = unittest.TestSuite([
328322
unittest.TestLoader().loadTestsFromTestCase(SQLiteTests),

0 commit comments

Comments
 (0)