Ejemplo n.º 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')
Ejemplo n.º 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')
Ejemplo n.º 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)
Ejemplo n.º 4
0
def test_create_comment():
    """test comment creation"""
    response = comment(FakeMedia(), 'This is a new comment', spoiler=True)
    assert response.get('comment')
Ejemplo n.º 5
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)
Ejemplo n.º 6
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 is None
Ejemplo n.º 7
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 is None
Ejemplo n.º 8
0
def test_create_comment():
    """test comment creation"""
    response = comment(FakeMedia(), 'This is a new comment', spoiler=True)
    assert response is None
Ejemplo n.º 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)