d3ddb9a745ae2e0ff1e074cf59c1019286fa902c,shell/tests/test_shell.py,,test_hook,#Any#,189
Before Change
c = spawnbdb
c.expect("bayeslite>", timeout=TIMEOUT)
c.sendline(".hook %s" % (THOOKS_PY,))
c.expect("bayeslite>", timeout=TIMEOUT)
assert not an_error_probably_happened(c.before)
assert "added command ".myhook"" in c.before
c.sendline(".help")
c.expect("bayeslite>", timeout=TIMEOUT)
assert not an_error_probably_happened(c.before)
assert "myhook help string" in c.before
c.sendline(".help myhook")
c.expect("bayeslite>", timeout=TIMEOUT)
assert not an_error_probably_happened(c.before)
assert ".myhook <string>" in c.before
After Change
def test_hook(spawnbdb):
c = spawnbdb
c.expectprompt()
c.sendline(".hook %s" % (THOOKS_PY,))
c.expectprompt()
assert not an_error_probably_happened(c.before)
assert "added command ".myhook"" in c.before
c.sendline(".help")
c.expectprompt()
assert not an_error_probably_happened(c.before)
assert "myhook help string" in c.before
c.sendline(".help myhook")
c.expectprompt()
assert not an_error_probably_happened(c.before)
assert ".myhook <string>" in c.before
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 4
Instances
Project Name: probcomp/bayeslite
Commit Name: d3ddb9a745ae2e0ff1e074cf59c1019286fa902c
Time: 2015-04-23
Author: baxyjr@gmail.com
File Name: shell/tests/test_shell.py
Class Name:
Method Name: test_hook
Project Name: probcomp/bayeslite
Commit Name: d3ddb9a745ae2e0ff1e074cf59c1019286fa902c
Time: 2015-04-23
Author: baxyjr@gmail.com
File Name: shell/tests/test_shell.py
Class Name:
Method Name: test_help_returns_list_of_commands
Project Name: probcomp/bayeslite
Commit Name: d3ddb9a745ae2e0ff1e074cf59c1019286fa902c
Time: 2015-04-23
Author: baxyjr@gmail.com
File Name: shell/tests/test_shell.py
Class Name:
Method Name: test_hook
Project Name: probcomp/bayeslite
Commit Name: d3ddb9a745ae2e0ff1e074cf59c1019286fa902c
Time: 2015-04-23
Author: baxyjr@gmail.com
File Name: shell/tests/test_shell.py
Class Name:
Method Name: spawntable
Project Name: probcomp/bayeslite
Commit Name: d3ddb9a745ae2e0ff1e074cf59c1019286fa902c
Time: 2015-04-23
Author: baxyjr@gmail.com
File Name: shell/tests/test_shell.py
Class Name:
Method Name: test_dot_csv
Project Name: probcomp/bayeslite
Commit Name: d3ddb9a745ae2e0ff1e074cf59c1019286fa902c
Time: 2015-04-23
Author: baxyjr@gmail.com
File Name: shell/tests/test_shell.py
Class Name:
Method Name: test_python_expression
Project Name: probcomp/bayeslite
Commit Name: d3ddb9a745ae2e0ff1e074cf59c1019286fa902c
Time: 2015-04-23
Author: baxyjr@gmail.com
File Name: shell/tests/test_shell.py
Class Name:
Method Name: test_describe_column_with_gnerator
Project Name: probcomp/bayeslite
Commit Name: d3ddb9a745ae2e0ff1e074cf59c1019286fa902c
Time: 2015-04-23
Author: baxyjr@gmail.com
File Name: shell/tests/test_shell.py
Class Name:
Method Name: spawngen