remove prefix

This commit is contained in:
2025-03-26 12:54:10 -03:00
parent 98a945efbc
commit 3564119581
8 changed files with 62 additions and 63 deletions

View File

@@ -42,7 +42,7 @@ def test_me(
'roles': ['ADMIN'],
},
],
'tenants': [
'workspaces': [
{
'sk': 'cJtK9SsnJhKPyxESe7g3DG',
'name': 'Beta Educação',

View File

@@ -31,8 +31,7 @@ def test_bearer_jwt(lambda_context: LambdaContext, dynamodb_seeds):
def test_parse_bearer_token_api_key():
bearer = _parse_bearer_token(
'Bearer pptx-35433970-6857-4062-bb43-f71683b2f68e',
apikey_prefix='pptx',
'Bearer sk-35433970-6857-4062-bb43-f71683b2f68e',
)
assert bearer.token == '35433970-6857-4062-bb43-f71683b2f68e' # type: ignore