Skip to content

Commit dc591c5

Browse files
authored
Update dependencies and version pinning (#394)
1 parent 985cd60 commit dc591c5

9 files changed

+15
-17
lines changed

requirements-dev.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
flake8
2-
pytest==8.3.2
1+
flake8==7.1.1
2+
pytest==8.3.4
33
pytest-asyncio==0.23.8
44
pytest-cov==5.0.0
5-
six==1.16.0
5+
six==1.17.0
66
black==24.4.2
77
twine==5.1.1
8-
mypy==1.12.0
9-
httpx>=0.27.0
8+
mypy==1.14.1
9+
httpx~=0.28.1

requirements.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
httpx>=0.27.0
2-
pydantic==2.9.2
3-
PyJWT==2.9.0
4-
cryptography==43.0.3
1+
httpx~=0.28.1
2+
pydantic~=2.10.4
3+
PyJWT==2.9.0 # Pinned because of Python 3.8 incompatibility in future versions
4+
cryptography~=44.0.0

tests/test_audit_logs.py

-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ def test_throws_badrequest_excpetion(
130130
self, mock_audit_log_event, mock_http_client_with_response
131131
):
132132
organization_id = "org_123456789"
133-
event = {"any_event": "any_event"}
134133

135134
mock_http_client_with_response(
136135
self.http_client,

tests/test_mfa.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def test_delete_factor_success(self, capture_and_mock_http_client_request):
221221
"/auth/factors/auth_factor_01FZ4TS14D1PHFNZ9GF6YD8M1F"
222222
)
223223
assert request_kwargs["method"] == "delete"
224-
assert response == None
224+
assert response is None
225225

226226
def test_challenge_success(
227227
self, mock_challenge_factor_response, capture_and_mock_http_client_request

tests/test_organizations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def mock_organizations_single_page_response(self):
6464
@pytest.fixture
6565
def mock_organizations_multiple_data_pages(self):
6666
organizations_list = [
67-
MockOrganization(id=str(f"org_{i+1}")).dict() for i in range(40)
67+
MockOrganization(id=str(f"org_{i + 1}")).dict() for i in range(40)
6868
]
6969
return list_response_of(data=organizations_list)
7070

tests/test_session.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import pytest
22
from unittest.mock import Mock, patch
33
import jwt
4-
from jwt import PyJWKClient
54
from datetime import datetime, timezone
65

76
from tests.conftest import with_jwks_mock

tests/test_sso.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def test_get_profile(self, mock_profile, capture_and_mock_http_client_request):
304304
assert profile.dict() == mock_profile
305305
assert request_kwargs["url"].endswith("/sso/profile")
306306
assert request_kwargs["method"] == "get"
307-
assert request_kwargs["headers"]["authorization"] == f"Bearer 123"
307+
assert request_kwargs["headers"]["authorization"] == "Bearer 123"
308308

309309
def test_get_connection(
310310
self, mock_connection, capture_and_mock_http_client_request

tests/test_webhooks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ def test_sig_hash_does_not_match_expected_sig_length(self, mock_sig_hash):
7272
mock_sig_hash,
7373
"df25b6efdd39d82e7b30e75ea19655b306860ad5cde3eeaeb6f1dfea029ea25",
7474
)
75-
assert result == False
75+
assert result is False
7676

7777
def test_sig_hash_does_not_match_expected_sig_value(self, mock_sig_hash):
7878
result = self.webhooks._constant_time_compare(
7979
mock_sig_hash,
8080
"df25b6efdd39d82e7b30e75ea19655b306860ad5cde3eeaeb6f1dfea029ea252",
8181
)
82-
assert result == False
82+
assert result is False
8383

8484
def test_passed_expected_event_validation(
8585
self, mock_event_body, mock_header, mock_secret

workos/user_management.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Optional, Protocol, Sequence, Set, Type, cast
1+
from typing import Optional, Protocol, Sequence, Type, cast
22
from workos._client_configuration import ClientConfiguration
33
from workos.session import Session
44
from workos.types.list_resource import (

0 commit comments

Comments
 (0)