mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 03:33:08 +00:00
Allow failure
This commit is contained in:
parent
6a3e7a0273
commit
201466a52f
2 changed files with 16 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
def # -*- coding: utf-8 -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
|
||||
from plexapi import log, utils
|
||||
|
|
15
tests/test_gdm.py
Normal file
15
tests/test_gdm.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
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)
|
Loading…
Reference in a new issue