Skip to content

Commit

Permalink
🎨 ignore specific warnings from external packages
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <ff137@proton.me>
  • Loading branch information
ff137 committed Feb 13, 2024
1 parent 4df2984 commit dfd829d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aries_cloudagent/admin/tests/test_admin_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit dfd829d

Please sign in to comment.