コード例 #1
0
ファイル: test_repo.py プロジェクト: victorvianna/lint-review
    def test_remove_label__label_exists(self):
        pull = GithubPullRequest(self.model)
        label_name = 'No lint errors'
        with add_ok_label(pull, label_name):
            pull.remove_label(label_name)

            pull.pull.issue().remove_label.assert_called_with(label_name)
コード例 #2
0
ファイル: test_repo.py プロジェクト: adrianmoisey/lint-review
    def test_remove_label__label_exists(self):
        pull = GithubPullRequest(self.model)
        label_name = 'No lint errors'
        with add_ok_label(pull, label_name):
            pull.remove_label(label_name)

            pull.pull.issue().remove_label.assert_called_with(label_name)
コード例 #3
0
ファイル: test_repo.py プロジェクト: victorvianna/lint-review
 def test_remove_label__label_missing(self):
     pull = GithubPullRequest(self.model)
     label_name = 'No lint errors'
     with add_ok_label(pull, 'Other label'):
         pull.remove_label(label_name)
         assert 0 == pull.pull.issue().remove_label.call_count
コード例 #4
0
ファイル: test_repo.py プロジェクト: adrianmoisey/lint-review
 def test_remove_label__label_missing(self):
     pull = GithubPullRequest(self.model)
     label_name = 'No lint errors'
     with add_ok_label(pull, 'Other label'):
         pull.remove_label(label_name)
         assert 0 == pull.pull.issue().remove_label.call_count