diff --git a/aries_cloudagent/admin/tests/test_admin_server.py b/aries_cloudagent/admin/tests/test_admin_server.py index 72a4300e69..300e82f758 100644 --- a/aries_cloudagent/admin/tests/test_admin_server.py +++ b/aries_cloudagent/admin/tests/test_admin_server.py @@ -20,6 +20,11 @@ from ..server import AdminServer, AdminSetupError +# Ignore Marshmallow warning, as well as 'NotAppKeyWarning' coming from apispec packages +@pytest.mark.filterwarnings( + "ignore:The 'missing' attribute of fields is deprecated. Use 'load_default' instead.", + "ignore:It is recommended to use web.AppKey instances for keys.", +) class TestAdminServer(IsolatedAsyncioTestCase): async def asyncSetUp(self): self.message_results = [] diff --git a/pyproject.toml b/pyproject.toml index eaec349daf..5f02f6482a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -139,6 +139,9 @@ markers = [ ] junit_family = "xunit1" asyncio_mode = "auto" +filterwarnings = [ + 'ignore:distutils Version classes are deprecated. Use packaging.version instead.:DeprecationWarning', # Ignore specific DeprecationWarning for old packages using distutils version class +] [tool.coverage.run]