Skip to content

Commit

Permalink
Silence auth errors from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spl0k committed Jan 2, 2024
1 parent 2209b65 commit 1feaae7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/api/apitestbase.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# This file is part of Supysonic.
# Supysonic is a Python implementation of the Subsonic server API.
#
# Copyright (C) 2017-2020 Alban 'spl0k' Féron
# Copyright (C) 2017-2024 Alban 'spl0k' Féron
#
# Distributed under terms of the GNU AGPLv3 license.

import re
import logging

from lxml import etree

Expand All @@ -22,6 +23,7 @@ class ApiTestBase(TestBase):

def setUp(self, apiVersion="1.12.0"):
super().setUp()
logging.getLogger("supysonic.api").addHandler(logging.NullHandler())
self.apiVersion = apiVersion
xsd = etree.parse(f"tests/assets/subsonic-rest-api-{self.apiVersion}.xsd")
self.schema = etree.XMLSchema(xsd)
Expand Down
5 changes: 4 additions & 1 deletion tests/frontend/frontendtestbase.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# This file is part of Supysonic.
# Supysonic is a Python implementation of the Subsonic server API.
#
# Copyright (C) 2017-2018 Alban 'spl0k' Féron
# Copyright (C) 2017-2024 Alban 'spl0k' Féron
#
# Distributed under terms of the GNU AGPLv3 license.

import logging

from ..testbase import TestBase


Expand All @@ -13,6 +15,7 @@ class FrontendTestBase(TestBase):

def setUp(self):
super().setUp()
logging.getLogger("supysonic.frontend.user").addHandler(logging.NullHandler())
self._patch_client()

def _login(self, username, password):
Expand Down

0 comments on commit 1feaae7

Please sign in to comment.