Permalink
Browse files

Try fixing set_preference/get_preference mock

  • Loading branch information...
crwood committed Feb 8, 2019
1 parent 4c302d7 commit acab08e35555cfe81b6e145010542cb3c98d3ff0
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/test_tahoe.py
@@ -372,8 +372,8 @@ def test_tahoe_restart(tahoe_state, call_count, tahoe, monkeypatch):
monkeypatch.setattr('gridsync.tahoe.Tahoe.start', mocked_start)
monkeypatch.setattr('gridsync.tahoe.Tahoe.await_ready', MagicMock())
monkeypatch.setattr('gridsync.tahoe.deferLater', MagicMock())
monkeypatch.setattr('gridsync.preferences.set_preference', MagicMock())
monkeypatch.setattr('gridsync.preferences.get_preference', MagicMock())
monkeypatch.setattr('gridsync.tahoe.set_preference', MagicMock())
monkeypatch.setattr('gridsync.tahoe.get_preference', MagicMock())
tahoe.state = tahoe_state
yield tahoe.restart()
assert mocked_start.call_count == call_count

0 comments on commit acab08e

Please sign in to comment.