Changeset View
Changeset View
Standalone View
Standalone View
contrib/buildbot/teamcity_wrapper.py
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | class TeamCity(): | ||||
def getTime(self): | def getTime(self): | ||||
if self.mockTime: | if self.mockTime: | ||||
return self.mockTime | return self.mockTime | ||||
# time.time() returns a float, so we cast to an int to make it play nice with our other APIs. | # time.time() returns a float, so we cast to an int to make it play nice with our other APIs. | ||||
# We do not care about sub-second precision anyway. | # We do not care about sub-second precision anyway. | ||||
return int(time.time()) | return int(time.time()) | ||||
def getIgnoreList(self, ignoreList): | def getIgnoreList(self): | ||||
return self.ignoreList | return self.ignoreList | ||||
def setMockTime(self, mockTime): | def setMockTime(self, mockTime): | ||||
self.mockTime = mockTime | self.mockTime = mockTime | ||||
def getResponse(self, request, expectJson=True): | def getResponse(self, request, expectJson=True): | ||||
response = self.session.send(request.prepare()) | response = self.session.send(request.prepare()) | ||||
▲ Show 20 Lines • Show All 422 Lines • Show Last 20 Lines |