Пример #1
0
 def __init__(self):
     Mock.__init__(self)
     # FIXME: We should probably use real checkout-root detection logic here.
     # os.getcwd() can't work here because other parts of the code assume that "checkout_root"
     # will actually be the root.  Since getcwd() is wrong, use a globally fake root for now.
     self.checkout_root = self.fake_checkout_root
     self.added_paths = set()
Пример #2
0
 def __init__(self, filesystem=None):
     Mock.__init__(self)
     # FIXME: We should probably use real checkout-root detection logic here.
     # os.getcwd() can't work here because other parts of the code assume that "checkout_root"
     # will actually be the root.  Since getcwd() is wrong, use a globally fake root for now.
     self.checkout_root = self.fake_checkout_root
     self.added_paths = set()
     self._filesystem = filesystem
Пример #3
0
 def __init__(self):
     Mock.__init__(self)
     self.queries = MockBugzillaQueries(self)
     self.committers = CommitterList(reviewers=[_mock_reviewer])
     self._override_patch = None
Пример #4
0
 def __init__(self, bugzilla):
     Mock.__init__(self)
     self._bugzilla = bugzilla
Пример #5
0
 def __init__(self):
     Mock.__init__(self)
     self.queries = MockBugzillaQueries(self)
     self.committers = CommitterList(reviewers=[Reviewer("Foo Bar",
                                                         "*****@*****.**")])
Пример #6
0
 def __init__(self):
     Mock.__init__(self)
     self.queries = MockBugzillaQueries(self)
     self.committers = CommitterList(reviewers=[Reviewer("Foo Bar",
                                                         "*****@*****.**")])
Пример #7
0
 def __init__(self, bugzilla):
     Mock.__init__(self)
     self._bugzilla = bugzilla
Пример #8
0
 def __init__(self):
     Mock.__init__(self)
     self.queries = MockBugzillaQueries(self)
     self.committers = CommitterList(reviewers=[_mock_reviewer])
     self._override_patch = None