コード例 #1
0
def test_create_review():
    """verify that a review can be successfully created"""
    response = comment(FakeMedia(), 'This is a new comment', review=True)
    assert response.get('comment')
コード例 #2
0
def test_forced_review():
    """verify that a comment is forced as a review if it's length is > 200"""
    response = comment(FakeMedia(), '*' * 201, review=False)
    assert response.get('comment')
コード例 #3
0
 def comment(self, comment_body, spoiler=False, review=False):
     """Add a comment (shout or review) to this :class:`TVEpisode` on trakt.
     """
     comment(self, comment_body, spoiler, review)
コード例 #4
0
def test_create_comment():
    """test comment creation"""
    response = comment(FakeMedia(), 'This is a new comment', spoiler=True)
    assert response.get('comment')
コード例 #5
0
ファイル: tv.py プロジェクト: mampersat/PyTrakt
 def comment(self, comment_body, spoiler=False, review=False):
     """Add a comment (shout or review) to this :class:`TVEpisode` on trakt.
     """
     comment(self, comment_body, spoiler, review)
コード例 #6
0
ファイル: test_sync.py プロジェクト: TheJake123/PyTrakt
def test_forced_review():
    """verify that a comment is forced as a review if it's length is > 200"""
    response = comment(FakeMedia(), '*' * 201, review=False)
    assert response is None
コード例 #7
0
ファイル: test_sync.py プロジェクト: TheJake123/PyTrakt
def test_create_review():
    """verify that a review can be successfully created"""
    response = comment(FakeMedia(), 'This is a new comment', review=True)
    assert response is None
コード例 #8
0
ファイル: test_sync.py プロジェクト: TheJake123/PyTrakt
def test_create_comment():
    """test comment creation"""
    response = comment(FakeMedia(), 'This is a new comment', spoiler=True)
    assert response is None
コード例 #9
0
 def comment(self, comment_body, spoiler=False, review=False):
     """Add a comment (shout or review) to this :class:`Move` on trakt."""
     return comment(self, comment_body, spoiler, review)