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.
1 parent 9b3ed39 commit 4023fb1Copy full SHA for 4023fb1
Lib/test/test_sqlite3/test_cli.py
@@ -116,14 +116,15 @@ def test_interact_version(self):
116
self.assertEqual(out.count(self.PS2), 0)
117
self.assertIn(sqlite3.sqlite_version, out)
118
119
- def test_interact_dot_commands_whitespace(self):
120
- out, err = self.run_cli(commands=(".version ", ". version"))
+ def test_interact_dot_commands(self):
+ # test dot commands with whitespaces and unknow dot commands
121
+ out, err = self.run_cli(commands=(".version ", ". version", ".spam"))
122
self.assertIn(self.MEMORY_DB_MSG, err)
123
self.assertEqual(out.count(sqlite3.sqlite_version + "\n"), 2)
124
self.assertEndsWith(out, self.PS1)
- self.assertEqual(out.count(self.PS1), 3)
125
+ self.assertEqual(out.count(self.PS1), 4)
126
- self.assertIn(sqlite3.sqlite_version, out)
127
+ self.assertIn("Error", out)
128
129
def test_interact_valid_sql(self):
130
out, err = self.run_cli(commands=("SELECT 1;",))
0 commit comments