mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-26 05:30:20 +00:00
Add some test for settings. TODO fix save.
This commit is contained in:
parent
35dc558b3f
commit
d47d7931f5
1 changed files with 17 additions and 0 deletions
17
tests/test_settings.py
Normal file
17
tests/test_settings.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
|
||||
def test_settings_group(plex):
|
||||
assert plex.settings.group('general')
|
||||
|
||||
|
||||
def test_settings_get(plex):
|
||||
# This is the value since it we havnt set any friendlyname
|
||||
# plex just default to computer name but it NOT in the settings.
|
||||
assert plex.settings.get('FriendlyName').value == ''
|
||||
|
||||
|
||||
def test_settings_get(plex):
|
||||
cd = plex.settings.get('collectUsageData')
|
||||
cd.set(False)
|
||||
# Save works but since we reload asap the data isnt changed.
|
||||
# or it might be our caching that does this. ## TODO
|
||||
plex.settings.save()
|
Loading…
Reference in a new issue