From 562ac2dd758f8bed9a6bbc7161318519276e506c Mon Sep 17 00:00:00 2001 From: Hellowlol Date: Thu, 16 Apr 2020 23:41:11 +0200 Subject: [PATCH] Update test_server.py --- tests/test_server.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/tests/test_server.py b/tests/test_server.py index 636a89b2..c3cc593d 100644 --- a/tests/test_server.py +++ b/tests/test_server.py @@ -132,24 +132,14 @@ def test_server_history(plex, movie): movie.markUnwatched() -@pytest.mark.anonymously +#@pytest.mark.anonymously +#@pytest.mark.authenticated def test_server_Server_query(plex): assert plex.query('/') with pytest.raises(NotFound): assert plex.query('/asdf/1234/asdf', headers={'random_headers': '1234'}) -@pytest.mark.authenticated -def test_server_Server_query_authenticated(plex): - assert plex.query('/') - with pytest.raises(BadRequest): - assert plex.query('/asdf/1234/asdf', headers={'random_headers': '1234'}) - with pytest.raises(BadRequest): - # This is really requests.exceptions.HTTPError - # 401 Client Error: Unauthorized for url - PlexServer(utils.SERVER_BASEURL, '1234') - - def test_server_Server_session(account): # Mock Sesstion class MySession(Session):