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:
Ejiro Asiuwhu
2026-03-24 22:17:03 +01:00
parent d2ed9f8244
commit 728533c87f
13 changed files with 289 additions and 0 deletions
@@ -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