def getTrackers(): project = Env().get("pivotal", "project") pivotalTracker = PivotalTrackerFor(project) pivotalTracker.loginAs(Env().get("pivotal", "login")).withCredential(Env().get("pivotal", "password")) jira = JiraTracker(Env().get("jira", "url")) jira.setTimezone(JiraTimezone(Env().get("jira", "timeToUtcHours"))) jira.loginAs(Env().get("jira","username")).withCredential(Env().get("jira","password")) PivotalToJiraStatusMap().insert(jira.getAvailableStatuses()) return jira, pivotalTracker
def getTrackers(): project = Env().get("pivotal", "project") pivotalTracker = PivotalTrackerFor(project) pivotalTracker.loginAs(Env().get("pivotal", "login")).withCredential(Env().get( "pivotal", "password")) jira = JiraTracker(Env().get("jira", "url")) jira.setTimezone(JiraTimezone(Env().get("jira", "timeToUtcHours"))) jira.loginAs(Env().get("jira", "username")).withCredential(Env().get( "jira", "password")) PivotalToJiraStatusMap().insert(jira.getAvailableStatuses()) return jira, pivotalTracker
def __init__(self): tracker = PivotalTrackerFor(Env().get("pivotal", "project")) tracker.loginAs(Env().get("pivotal", "login")).withCredential(Env().get("pivotal", "password")) self.tracker_ = tracker
def makeTestTracker(self): myProject = 12345 self.apiObject_ = mock() tracker = PivotalTrackerFor(myProject) tracker.apiObject(self.apiObject_) return tracker