50e4dca9e0a4fb7e88ae537e38aca7ead4f9b3f1,shell/tests/test_shell.py,,test_sql,#Any#,177

Before Change


    table, c = spawntable
    cmd = ".sql pragma table_info(bayesdb_column)"
    c.sendline(cmd)
    c.expectprompt()

    assert not an_error_probably_happened(c.before)

    splitres = c.before.split("\n")

After 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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: probcomp/bayeslite
Commit Name: 50e4dca9e0a4fb7e88ae537e38aca7ead4f9b3f1
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: 50e4dca9e0a4fb7e88ae537e38aca7ead4f9b3f1
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: 50e4dca9e0a4fb7e88ae537e38aca7ead4f9b3f1
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: 50e4dca9e0a4fb7e88ae537e38aca7ead4f9b3f1
Time: 2015-04-27
Author: riastradh+probcomp@csail.mit.edu
File Name: shell/tests/test_shell.py
Class Name:
Method Name: test_hook