Skip to content

Commit

Permalink
known first parties
Browse files Browse the repository at this point in the history
  • Loading branch information
wlach committed Mar 27, 2020
1 parent 4f23384 commit c8d349f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exclude = "gui/mozregui/ui"
[tool.isort]
line_length = 100
skip_glob = "**/gui/mozregui/ui/*"
known_first_party=mozregression,mozregui
# For compatibility with black:
multi_line_output = 3
include_trailing_comma = "True"
Expand Down
20 changes: 20 additions & 0 deletions tests/unit/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import pytest

from mozregression import build_range
from mozregression.fetch_build_info import InfoFetcher


class RangeCreator(object):
def __init__(self, mocker):
self.mocker = mocker

def create(self, values):
info_fetcher = self.mocker.Mock(spec=InfoFetcher)
info_fetcher.find_build_info.side_effect = lambda i: i
future_build_infos = [build_range.FutureBuildInfo(info_fetcher, v) for v in values]
return build_range.BuildRange(info_fetcher, future_build_infos)


@pytest.fixture
def range_creator(mocker):
return RangeCreator(mocker)

0 comments on commit c8d349f

Please sign in to comment.