python-plexapi/tests/test_gdm.py

16 lines
309 B
Python
Raw Normal View History

2020-05-01 21:32:46 +00:00
import pytest
from plexapi.gdm import GDM
@pytest.mark.xfail(reason="Might fail on docker", strict=False)
def test_gdm(plex):
gdm = GDM()
gdm_enabled = plex.settings.get("GdmEnabled")
gdm.scan()
2020-05-01 21:32:46 +00:00
if gdm_enabled:
assert len(gdm.entries)
else:
assert not len(gdm.entries)