80475ccb323e29d8537965f4522307ac3a949aa8,shell/tests/test_shell.py,,test_sql,#Any#,180
Before Change
table, c = spawntable
cmd = ".sql pragma table_info(bayesdb_column)"
c.sendline(cmd)
c.expectprompt([
cmd,
"cid | name | type | notnull | dflt_value | pk",
"----+-------------+---------+---------+------------+---",
" 0 | tabname | TEXT | 1 | None | 1",
" 1 | colno | INTEGER | 1 | None | 2",
" 2 | name | TEXT | 1 | None | 0",
" 3 | shortname | TEXT | 0 | None | 0",
" 4 | description | TEXT | 0 | None | 0",
])
def test_describe_column_with_generator(spawngen):
gen, c = spawngen
After Change
def test_sql(spawntable):
table, c = spawntable
c.sendline(".sql pragma table_info(bayesdb_column)")
c.expect_exact(
".sql pragma table_info(bayesdb_column)\r\n"
"cid | name | type | notnull | dflt_value | pk\r\n"
"----+-------------+---------+---------+------------+---\r\n"
" 0 | tabname | TEXT | 1 | None | 1\r\n"
" 1 | colno | INTEGER | 1 | None | 2\r\n"
" 2 | name | TEXT | 1 | None | 0\r\n"
" 3 | shortname | TEXT | 0 | None | 0\r\n"
" 4 | description | TEXT | 0 | None | 0\r\n"
"bayeslite> "
)
assert c.before == ""
def test_describe_column_with_generator(spawngen):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: probcomp/bayeslite
Commit Name: 80475ccb323e29d8537965f4522307ac3a949aa8
Time: 2015-04-27
Author: riastradh+probcomp@csail.mit.edu
File Name: shell/tests/test_shell.py
Class Name:
Method Name: test_sql
Project Name: probcomp/bayeslite
Commit Name: 80475ccb323e29d8537965f4522307ac3a949aa8
Time: 2015-04-27
Author: riastradh+probcomp@csail.mit.edu
File Name: shell/tests/test_shell.py
Class Name:
Method Name: spawnbdb
Project Name: probcomp/bayeslite
Commit Name: 80475ccb323e29d8537965f4522307ac3a949aa8
Time: 2015-04-27
Author: riastradh+probcomp@csail.mit.edu
File Name: shell/tests/test_shell.py
Class Name:
Method Name: test_python_expression
Project Name: probcomp/bayeslite
Commit Name: 80475ccb323e29d8537965f4522307ac3a949aa8
Time: 2015-04-27
Author: riastradh+probcomp@csail.mit.edu
File Name: shell/tests/test_shell.py
Class Name:
Method Name: test_hook