Changeset View
Changeset View
Standalone View
Standalone View
contrib/buildbot/test/test_endpoint_build.py
Show All 10 Lines | |||||
from test.abcbot_fixture import ABCBotFixture | from test.abcbot_fixture import ABCBotFixture | ||||
import test.mocks.teamcity | import test.mocks.teamcity | ||||
from testutil import AnyWith | from testutil import AnyWith | ||||
class buildRequestQuery(): | class buildRequestQuery(): | ||||
def __init__(self): | def __init__(self): | ||||
self.buildTypeId = 'test-build-type-id' | self.buildTypeId = 'test-build-type-id' | ||||
self.ref = 'refs/heads/master' | |||||
self.PHID = 'buildPHID' | self.PHID = 'buildPHID' | ||||
def __str__(self): | def __str__(self): | ||||
return "?{}".format("&".join("{}={}".format(key, value) | return "?{}".format("&".join("{}={}".format(key, value) | ||||
for key, value in self.__dict__.items())) | for key, value in self.__dict__.items())) | ||||
class EndpointBuildTestCase(ABCBotFixture): | class EndpointBuildTestCase(ABCBotFixture): | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |