Skip to content

Commit 78c0e8d

Browse files
committed
🎨 ignore specific warnings from external packages
Signed-off-by: ff137 <[email protected]>
1 parent ff0bc8d commit 78c0e8d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

aries_cloudagent/admin/tests/test_admin_server.py

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
from ..server import AdminServer, AdminSetupError
2121

2222

23+
# Ignore Marshmallow warning, as well as 'NotAppKeyWarning' coming from apispec packages
24+
@pytest.mark.filterwarnings(
25+
"ignore:The 'missing' attribute of fields is deprecated. Use 'load_default' instead.",
26+
"ignore:It is recommended to use web.AppKey instances for keys.",
27+
)
2328
class TestAdminServer(IsolatedAsyncioTestCase):
2429
async def asyncSetUp(self):
2530
self.message_results = []

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ markers = [
139139
]
140140
junit_family = "xunit1"
141141
asyncio_mode = "auto"
142+
filterwarnings = [
143+
'ignore:distutils Version classes are deprecated. Use packaging.version instead.:DeprecationWarning', # Ignore specific DeprecationWarning for old packages using distutils version class
144+
]
142145

143146
[tool.coverage.run]
144147

0 commit comments

Comments
 (0)