Skip to content

Commit

Permalink
Fix DatabaseBuddy liveshell_postcmd unit test
Browse files Browse the repository at this point in the history
The test grabs system specific history info for its comparison, so must not do a full comparison
  • Loading branch information
biologyguy committed Feb 1, 2017
1 parent 8a28912 commit 97eed3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buddysuite/tests/test_databasebuddy/test_db_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_liveshell_postcmd(monkeypatch):
crash_file = br.TempFile(byte_mode=True)
liveshell = Db.LiveShell(dbbuddy, crash_file)
assert liveshell.postcmd("STOP!", "foo bar line") == "STOP!"
assert liveshell.usage.stats['LiveShell'] == {Db.VERSION.short(): {'foo': 1}}
assert liveshell.usage.stats['LiveShell'][Db.VERSION.short()]['foo'] == 1


def test_liveshell_dump_session(monkeypatch):
Expand Down

0 comments on commit 97eed3f

Please sign in to comment.