Skip to content

Commit 201466a

Browse files
committed
Allow failure
1 parent 6a3e7a0 commit 201466a

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

plexapi/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
def # -*- coding: utf-8 -*-
1+
# -*- coding: utf-8 -*-
22
import re
33

44
from plexapi import log, utils

tests/test_gdm.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import pytest
2+
from plexapi.gdm import GDM
3+
4+
5+
@pytest.mark.xfail(reason="Might fail on docker", strict=False)
6+
def test_gdm(plex):
7+
gdm = GDM()
8+
9+
gdm_enabled = plex.settings.get("GdmEnabled")
10+
11+
gdm.scan(timeout=2)
12+
if gdm_enabled:
13+
assert len(gdm.entries)
14+
else:
15+
assert not len(gdm.entries)

0 commit comments

Comments
 (0)