Skip to content

Commit 8af6691

Browse files
authored
Bump schemathesis to 3.38.6 and silence its warning (#5166)
1 parent 5b16cf1 commit 8af6691

File tree

3 files changed

+25
-27
lines changed

3 files changed

+25
-27
lines changed

api/pdm.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/pyproject.toml

+21-21
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "API for the Openverse project"
55
readme = "README.md"
66
license = {text = "MIT"}
77
authors = [
8-
{name = "Openverse Contributors", email = "[email protected]"},
8+
{name = "Openverse Contributors", email = "[email protected]"},
99
]
1010

1111
requires-python = "==3.12.*"
@@ -46,7 +46,7 @@ distribution = false
4646
[tool.pdm.dev-dependencies]
4747
# These packages override their main counterparts with an editable installation.
4848
overrides = [
49-
"-e openverse-attribution @ file:///${PROJECT_ROOT}/../packages/python/openverse-attribution"
49+
"-e openverse-attribution @ file:///${PROJECT_ROOT}/../packages/python/openverse-attribution"
5050
]
5151
dev = [
5252
"ipython >=8.22.1, <9",
@@ -59,16 +59,16 @@ dev = [
5959
"watchfiles>=0.24.0",
6060
]
6161
test = [
62-
"factory-boy >=3.3.0, <4",
63-
"fakeredis >=2.21.3, <3",
64-
"freezegun >=1.4.0, <2",
65-
"pook >=2, <3",
66-
"pytest >=8.3.3, <9",
67-
"pytest-django >=4.8.0, <5",
68-
"pytest-pook>=1.0.0",
69-
"pytest-raises >=0.11, <0.12",
70-
"pytest-sugar >=1, <1.1",
71-
"schemathesis >=3.25.6, <4",
62+
"factory-boy >=3.3.0, <4",
63+
"fakeredis >=2.21.3, <3",
64+
"freezegun >=1.4.0, <2",
65+
"pook >=2, <3",
66+
"pytest >=8.3.3, <9",
67+
"pytest-django >=4.8.0, <5",
68+
"pytest-pook>=1.0.0",
69+
"pytest-raises >=0.11, <0.12",
70+
"pytest-sugar >=1, <1.1",
71+
"schemathesis >=3.38.6, <4",
7272
]
7373

7474
[tool.pytest.ini_options]
@@ -77,14 +77,14 @@ DJANGO_SETTINGS_MODULE = "conf.settings"
7777
pythonpath = "."
7878

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

86-
# Ignore warnings about the upcoming change in the default value of 'USE_TZ' setting in Django 5.0.
87-
# Reason: The reason this warning is suppressed is actually because we already set USE_TZ to True.
88-
# Since no changes are required on our part, we can safely ignore this to declutter the logs.
89-
"ignore:The default value of USE_TZ will change from False to True in Django 5.0",
86+
# Ignore warnings coming from schemathesis.
87+
# Reason: These are warnings raised by the library itself and are not relevant to our codebase.
88+
"ignore:jsonschema.RefResolver is deprecated as of v4.18.0",
89+
"ignore:jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0.",
9090
]

api/test/integration/test_auth.py

-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def unreachable_oauth_cache(unreachable_django_cache, monkeypatch):
3535
yield cache
3636

3737

38-
@pytest.mark.django_db
3938
@pytest.fixture
4039
def test_auth_tokens_registration(api_client):
4140
data = {
@@ -53,7 +52,6 @@ def test_auth_tokens_registration(api_client):
5352
return res_data
5453

5554

56-
@pytest.mark.django_db
5755
@pytest.fixture
5856
def test_auth_token_exchange(api_client, test_auth_tokens_registration):
5957
api_client_id = test_auth_tokens_registration["client_id"]

0 commit comments

Comments
 (0)