mirror of
https://github.com/beetbox/beets.git
synced 2025-12-31 13:02:47 +01:00
Add test for custom named music section (library_name property) (#1595)
This commit is contained in:
parent
4a225ee291
commit
7a70bd3b81
1 changed files with 11 additions and 0 deletions
|
|
@ -94,6 +94,17 @@ class PlexUpdateTest(unittest.TestCase, TestHelper):
|
|||
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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue