Allow failure

This commit is contained in:
Hellowlol 2020-05-02 00:32:46 +03:00
parent 6a3e7a0273
commit 201466a52f
2 changed files with 16 additions and 1 deletions

View file

@ -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
View 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)