Skip to content

Commit 73502f8

Browse files
committed
Register custom marks
1 parent 8bdd831 commit 73502f8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pytest.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[pytest]
2+
markers =
3+
client: this is a client test.
4+
req_client: require a client to run this test.
5+
anonymously: test plexapi anonymously.
6+
authenticated: test plexapi authenticated.

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
from plexapi.client import PlexClient
1313
from plexapi.server import PlexServer
1414

15+
16+
1517
SERVER_BASEURL = plexapi.CONFIG.get('auth.server_baseurl')
1618
MYPLEX_USERNAME = plexapi.CONFIG.get('auth.myplex_username')
1719
MYPLEX_PASSWORD = plexapi.CONFIG.get('auth.myplex_password')
@@ -34,8 +36,6 @@
3436

3537
TEST_AUTHENTICATED = 'authenticated'
3638
TEST_ANONYMOUSLY = 'anonymously'
37-
38-
3939
ANON_PARAM = pytest.param(TEST_ANONYMOUSLY, marks=pytest.mark.anonymous)
4040
AUTH_PARAM = pytest.param(TEST_AUTHENTICATED, marks=pytest.mark.authenticated)
4141

0 commit comments

Comments
 (0)