We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef4c782 + 6b15a87 commit 54d0861Copy full SHA for 54d0861
tests/sql.py
@@ -69,6 +69,12 @@ def test_select_with_comments(self):
69
def test_select_with_semicolon(self):
70
self.assertEqual(self.db.execute("SELECT * FROM cs50;\n--comment"), [])
71
72
+ def test_select_with_comments(self):
73
+ self.assertEqual(self.db.execute("--comment\nSELECT * FROM cs50;\n--comment"), [])
74
+
75
+ def test_select_with_semicolon(self):
76
+ self.assertEqual(self.db.execute("SELECT * FROM cs50;\n--comment"), [])
77
78
def test_update_returns_affected_rows(self):
79
rows = [
80
{"id": 1, "val": "foo"},
0 commit comments