mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
test: add failing tests for python sdk error hierarchy and base model
- Test StackAuthError base class storage and string representation - Test all 13 category subclasses inherit from StackAuthError - Test from_response() dispatch for known and unknown error codes - Test StackAuthModel config and millis conversion - Package skeleton with pyproject.toml (stubs only, tests expected to fail)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
# Placeholder - will be populated after errors.py is implemented
|
||||
@@ -0,0 +1,3 @@
|
||||
DEFAULT_BASE_URL = "https://api.stack-auth.com"
|
||||
SDK_NAME = "python"
|
||||
API_VERSION = "v1"
|
||||
@@ -0,0 +1,8 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Mapping, Protocol
|
||||
|
||||
|
||||
class RequestLike(Protocol):
|
||||
@property
|
||||
def headers(self) -> Mapping[str, str]: ...
|
||||
@@ -0,0 +1 @@
|
||||
__version__ = "0.1.0"
|
||||
@@ -0,0 +1 @@
|
||||
# Placeholder - error hierarchy not yet implemented
|
||||
@@ -0,0 +1 @@
|
||||
# Placeholder - base model not yet implemented
|
||||
Reference in New Issue
Block a user