def test_createColumn(mockGithub): gh = GitHub(token='foo') gh.github = mockGithub repo = gh._getUser().create_repo() project = gh._createProject(repo, 'testOrg', 'testBody') gh._createColumn(project, 'test') project.create_column.assert_called_with('test')
def test_createCard(mockGithub): gh = GitHub(token='foo') gh.github = mockGithub repo = gh._getUser().create_repo() project = gh._createProject(repo, 'testOrg', 'testBody') column = gh._createColumn(project, 'test') issue = gh._createIssue(repo, 'testMilestone', 'testTitle', 'testBody', []) gh._createCard(column, issue) column.create_card.assert_called_with(content_id=issue.id, content_type="Issue")