Exemple #1
0
def test_rating():
    timestamps = [datetime.now(), None]
    for timestamp in timestamps:
        response = rate(FakeMedia(), 10, timestamp)
        assert response['added'] == {
            'episodes': 2, 'movies': 1, 'seasons': 1, 'shows': 1
        }
        assert len(response['not_found']['movies']) == 1
Exemple #2
0
 def rate(self, rating):
     """Rate this :class:`TVEpisode` on trakt. Depending on the current users
     settings, this may also send out social updates to facebook, twitter,
     tumblr, and path.
     """
     rate(self, rating)
Exemple #3
0
def test_rating():
    timestamps = [datetime.now(), None]
    for timestamp in timestamps:
        response = rate(FakeMedia(), 10, timestamp)
        assert response is None
Exemple #4
0
 def rate(self, rating):
     """Rate this :class:`TVEpisode` on trakt. Depending on the current users
     settings, this may also send out social updates to facebook, twitter,
     tumblr, and path.
     """
     rate(self, rating)
Exemple #5
0
def test_rating():
    timestamps = [datetime.now(), None]
    for timestamp in timestamps:
        response = rate(FakeMedia(), 10, timestamp)
        assert response is None