Skip to content

Commit

Permalink
Test: ignore warnings from schemathesis
Browse files Browse the repository at this point in the history
  • Loading branch information
krysal committed Nov 15, 2024
1 parent 8ef0587 commit 01ab3b7
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,18 @@ DJANGO_SETTINGS_MODULE = "conf.settings"
pythonpath = "."

filterwarnings = [
# Ignore warnings related to unverified HTTPS requests.
# Reason: This warning is suppressed to avoid raising warnings when making HTTP requests
# to servers with invalid or self-signed SSL certificates. It allows the tests to proceed
# without being interrupted by these warnings.
"ignore:Unverified HTTPS request",
# Ignore warnings related to unverified HTTPS requests.
# Reason: This warning is suppressed to avoid raising warnings when making HTTP requests
# to servers with invalid or self-signed SSL certificates. It allows the tests to proceed
# without being interrupted by these warnings.
"ignore:Unverified HTTPS request",

# Ignore warnings about the upcoming change in the default value of 'USE_TZ' setting in Django 5.0.
# Reason: The reason this warning is suppressed is actually because we already set USE_TZ to True.
# Since no changes are required on our part, we can safely ignore this to declutter the logs.
"ignore:The default value of USE_TZ will change from False to True in Django 5.0",
# Ignore warnings about the upcoming change in the default value of 'USE_TZ' setting in Django 5.0.
# Reason: The reason this warning is suppressed is actually because we already set USE_TZ to True.
# Since no changes are required on our part, we can safely ignore this to declutter the logs.
"ignore:The default value of USE_TZ will change from False to True in Django 5.0",

# Ignore warnings coming from schemathesis.
"ignore:jsonschema.RefResolver is deprecated as of v4.18.0",
"ignore:jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0.",
]

0 comments on commit 01ab3b7

Please sign in to comment.