@@ -128,6 +128,7 @@ def test_interact_version(self):
128128 def test_interact_tables (self ):
129129 out , err = self .run_cli (commands = (
130130 "CREATE TABLE table_ (id INTEGER);" ,
131+ "CREATE TABLE sqlitee (id INTEGER);" ,
131132 "CREATE TEMP TABLE temp_table (id INTEGER);" ,
132133 "CREATE VIEW view_ AS SELECT 1;" ,
133134 "CREATE TEMP VIEW temp_view AS SELECT 1;" ,
@@ -141,10 +142,18 @@ def test_interact_tables(self):
141142 ))
142143 self .assertIn (self .MEMORY_DB_MSG , err )
143144 self .assertEndsWith (out , self .PS1 )
144- self .assertEqual (out .count (self .PS1 ), 12 )
145+ self .assertEqual (out .count (self .PS1 ), 13 )
145146 self .assertEqual (out .count (self .PS2 ), 0 )
146- self .assertIn ("123.table_\n 123.view_\n attach_.table_\n attach_.view_\n "
147- "table_\n temp.temp_table\n temp.temp_view\n view_\n " , out )
147+ tables = ("123.table_" ,
148+ "123.view_" ,
149+ "attach_.table_" ,
150+ "attach_.view_" ,
151+ "sqlitee" ,
152+ "table_" ,
153+ "temp.temp_table" ,
154+ "temp.temp_view" ,
155+ "view_" )
156+ self .assertIn ("\n " .join (tables ), out )
148157
149158 def test_interact_empty_source (self ):
150159 out , err = self .run_cli (commands = ("" , " " ))
0 commit comments