Skip to content

Commit

Permalink
Add test for custom named music section (library_name property) (be…
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwilsdon committed Sep 10, 2015
1 parent 4a225ee commit 7a70bd3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/test_plexupdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@ def test_get_music_section(self):
self.config['plex']['token'],
self.config['plex']['library_name'].get()), '2')

@responses.activate
def test_get_named_music_section(self):
# Adding response.
self.add_response_get_music_section('My Music Library')

self.assertEqual(get_music_section(
self.config['plex']['host'],
self.config['plex']['port'],
self.config['plex']['token'],
'My Music Library'), '2')

@responses.activate
def test_update_plex(self):
# Adding responses.
Expand Down

0 comments on commit 7a70bd3

Please sign in to comment.