Skip to content

Commit

Permalink
Bug 1080760 - Missing fixure added to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Dawson committed May 21, 2015
1 parent 4c6eaaf commit 70ddc6a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/conftest.py
Expand Up @@ -490,3 +490,17 @@ def pulse_resultset_consumer(request):
@pytest.fixture
def pulse_action_consumer(request):
return pulse_consumer('job-actions', request)


@pytest.fixture
def mock_error_summary(monkeypatch):
bs_obj = ["foo", "bar"]

from treeherder.model import error_summary

def _get_error_summary(params):
return bs_obj

monkeypatch.setattr(error_summary, "get_error_summary", _get_error_summary)

return bs_obj

0 comments on commit 70ddc6a

Please sign in to comment.