Skip to content

Instantly share code, notes, and snippets.

@liiight
Created March 17, 2016 15:54
Show Gist options
  • Select an option

  • Save liiight/2ec328fd206de76b2d4a to your computer and use it in GitHub Desktop.

Select an option

Save liiight/2ec328fd206de76b2d4a to your computer and use it in GitHub Desktop.

Revisions

  1. liiight created this gist Mar 17, 2016.
    20 changes: 20 additions & 0 deletions test_trakt_list.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    from __future__ import unicode_literals, division, absolute_import

    import pytest

    from flexget.entry import Entry
    from flexget.plugins.list.trakt_list import TraktSet


    @pytest.mark.online
    class TestTraktList(object):
    config = {'tasks': {}}

    trakt_config = {'account': 'flexget_list_test',
    'list': 'watchlist',
    'type': 'shows'}

    trakt_set = TraktSet(trakt_config)
    entry = Entry(title='White collar (2009)', series_name='White collar (2009)')
    trakt_set.add(entry)