Skip to content

Commit

Permalink
Try fixing set_preference/get_preference mock
Browse files Browse the repository at this point in the history
  • Loading branch information
crwood committed Feb 8, 2019
1 parent 4c302d7 commit acab08e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_tahoe.py
Expand Up @@ -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
Expand Down

0 comments on commit acab08e

Please sign in to comment.