Marketplace tests update
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
# tests/integration/api/v1/test_auth_endpoints.py
|
||||
import pytest
|
||||
from jose import jwt
|
||||
from datetime import datetime, timedelta
|
||||
from datetime import datetime, timedelta, timezone
|
||||
|
||||
|
||||
@pytest.mark.integration
|
||||
@pytest.mark.api
|
||||
@@ -195,8 +196,8 @@ class TestAuthenticationAPI:
|
||||
"username": test_user.username,
|
||||
"email": test_user.email,
|
||||
"role": test_user.role,
|
||||
"exp": datetime.utcnow() - timedelta(hours=1),
|
||||
"iat": datetime.utcnow() - timedelta(hours=2),
|
||||
"exp": datetime.now(timezone.utc) - timedelta(hours=1),
|
||||
"iat": datetime.now(timezone.utc) - timedelta(hours=2),
|
||||
}
|
||||
|
||||
expired_token = jwt.encode(
|
||||
|
||||
Reference in New Issue
Block a user