mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-27 06:00:24 +00:00
15 lines
318 B
Python
15 lines
318 B
Python
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(timeout=2)
|
|
if gdm_enabled:
|
|
assert len(gdm.entries)
|
|
else:
|
|
assert not len(gdm.entries)
|