Skip to content

Commit 6788f52

Browse files
authored
Merge branch 'main' into auth-metadata
2 parents 453de4c + 9dad266 commit 6788f52

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/client/test_auth.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,8 @@ def test_has_valid_token_valid(self, oauth_provider, oauth_token):
429429

430430
assert oauth_provider._has_valid_token()
431431

432-
def test_has_valid_token_expired(self, oauth_provider, oauth_token):
432+
@pytest.mark.anyio
433+
async def test_has_valid_token_expired(self, oauth_provider, oauth_token):
433434
"""Test token validation with expired token."""
434435
oauth_provider._current_tokens = oauth_token
435436
oauth_provider._token_expiry_time = time.time() - 3600 # Past expiry
@@ -880,7 +881,8 @@ def test_scope_priority_no_client_metadata_scope(
880881
# No scope should be set since client metadata doesn't have explicit scope
881882
assert "scope" not in auth_params
882883

883-
def test_scope_priority_no_scope(self, oauth_provider, oauth_client_info):
884+
@pytest.mark.anyio
885+
async def test_scope_priority_no_scope(self, oauth_provider, oauth_client_info):
884886
"""Test that no scope parameter is set when no scopes specified."""
885887
oauth_provider.client_metadata.scope = None
886888
oauth_provider._client_info = oauth_client_info

0 commit comments

Comments
 (0)