Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
flake8
pytest==8.3.2
flake8==7.1.1
pytest==8.3.4
pytest-asyncio==0.23.8
pytest-cov==5.0.0
six==1.16.0
six==1.17.0
black==24.4.2
twine==5.1.1
mypy==1.12.0
httpx>=0.27.0
mypy==1.14.1
httpx~=0.28.1
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
httpx>=0.27.0
pydantic==2.9.2
PyJWT==2.9.0
cryptography==43.0.3
httpx~=0.28.1
pydantic~=2.10.4
PyJWT==2.9.0 # Pinned because of Python 3.8 incompatibility in future versions
cryptography~=44.0.0
1 change: 0 additions & 1 deletion tests/test_audit_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def test_throws_badrequest_excpetion(
self, mock_audit_log_event, mock_http_client_with_response
):
organization_id = "org_123456789"
event = {"any_event": "any_event"}

mock_http_client_with_response(
self.http_client,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_mfa.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def test_delete_factor_success(self, capture_and_mock_http_client_request):
"/auth/factors/auth_factor_01FZ4TS14D1PHFNZ9GF6YD8M1F"
)
assert request_kwargs["method"] == "delete"
assert response == None
assert response is None

def test_challenge_success(
self, mock_challenge_factor_response, capture_and_mock_http_client_request
Expand Down
2 changes: 1 addition & 1 deletion tests/test_organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def mock_organizations_single_page_response(self):
@pytest.fixture
def mock_organizations_multiple_data_pages(self):
organizations_list = [
MockOrganization(id=str(f"org_{i+1}")).dict() for i in range(40)
MockOrganization(id=str(f"org_{i + 1}")).dict() for i in range(40)
]
return list_response_of(data=organizations_list)

Expand Down
1 change: 0 additions & 1 deletion tests/test_session.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import pytest
from unittest.mock import Mock, patch
import jwt
from jwt import PyJWKClient
from datetime import datetime, timezone

from tests.conftest import with_jwks_mock
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sso.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def test_get_profile(self, mock_profile, capture_and_mock_http_client_request):
assert profile.dict() == mock_profile
assert request_kwargs["url"].endswith("/sso/profile")
assert request_kwargs["method"] == "get"
assert request_kwargs["headers"]["authorization"] == f"Bearer 123"
assert request_kwargs["headers"]["authorization"] == "Bearer 123"

def test_get_connection(
self, mock_connection, capture_and_mock_http_client_request
Expand Down
4 changes: 2 additions & 2 deletions tests/test_webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ def test_sig_hash_does_not_match_expected_sig_length(self, mock_sig_hash):
mock_sig_hash,
"df25b6efdd39d82e7b30e75ea19655b306860ad5cde3eeaeb6f1dfea029ea25",
)
assert result == False
assert result is False

def test_sig_hash_does_not_match_expected_sig_value(self, mock_sig_hash):
result = self.webhooks._constant_time_compare(
mock_sig_hash,
"df25b6efdd39d82e7b30e75ea19655b306860ad5cde3eeaeb6f1dfea029ea252",
)
assert result == False
assert result is False

def test_passed_expected_event_validation(
self, mock_event_body, mock_header, mock_secret
Expand Down
2 changes: 1 addition & 1 deletion workos/user_management.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional, Protocol, Sequence, Set, Type, cast
from typing import Optional, Protocol, Sequence, Type, cast
from workos._client_configuration import ClientConfiguration
from workos.session import Session
from workos.types.list_resource import (
Expand Down
Loading