Fix test_history for python < 3.6.

Mock.assert_called is only in python 3.6. For earlier versions we must
use `assert m.called`.

Weird errors only appearing in CI, trying to debug...
This commit is contained in:
Ryan Roden-Corrent 2017-05-11 08:20:37 -04:00
parent e201a42383
commit 87643040a4

View File

@ -122,7 +122,7 @@ def test_clear(qtbot, tmpdir, hist, mocker):
m = mocker.patch('qutebrowser.browser.history.message.confirm_async')
hist.clear()
m.assert_called()
assert m.called
def test_clear_force(qtbot, tmpdir, hist):