Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
Publish the review.

Existing comments are loaded, and compared
to new problems. Once the new unique problems
are distilled new comments are published.

src/l/i/lint-review-HEAD/tests/test_review.py   lint-review(Download)
 
        sha = 'abc123'
        review.publish(problems, sha)
 
        assert not(gh.pull_requests.comments.create.called)
 
        sha = 'abc123'
        review.publish(problems, sha)
 
        assert not(gh.pull_requests.comments.create.called)
        review = Review(gh, 3)
        review.publish_summary = Mock()
        review.publish(problems, sha, 1)
 
        assert review.publish_summary.called, 'Should have been called.'