Format: Apply code and markdown formatting fixes
This commit is contained in:
parent
6e9087d0f4
commit
ddff43595f
@ -135,7 +135,7 @@ All series-related WebSocket events include `key` as the primary identifier in t
|
||||
### AnimeSeries Identifier Fields
|
||||
|
||||
| Field | Type | Purpose |
|
||||
| ------ | ----------- | ------------------------------------------------- |
|
||||
| -------- | --------------- | ------------------------------------------------- |
|
||||
| `id` | Primary Key | Internal database key for relationships |
|
||||
| `key` | Unique, Indexed | **PRIMARY IDENTIFIER** for all lookups |
|
||||
| `folder` | String | Filesystem metadata only (not for identification) |
|
||||
|
||||
@ -196,6 +196,7 @@ conda run -n AniWorld python -m pytest tests/ -v
|
||||
```
|
||||
|
||||
**Completion Notes:**
|
||||
|
||||
- Updated `FakeSerie` and `FakeSeriesApp` in `test_anime_endpoints.py` with realistic keys
|
||||
- Updated fixtures in `test_websocket_integration.py` (6+ fixtures)
|
||||
- Updated fixtures in `test_download_progress_integration.py` (5 fixtures)
|
||||
@ -230,6 +231,7 @@ conda run -n AniWorld python -m pytest tests/ -v
|
||||
- [x] All integration tests pass (10 tests)
|
||||
|
||||
**Completion Notes:**
|
||||
|
||||
- Created comprehensive test file with 10 tests:
|
||||
- `TestAPIIdentifierConsistency`: 2 tests for API response validation
|
||||
- `TestServiceIdentifierConsistency`: 2 tests for download service key usage
|
||||
|
||||
@ -153,6 +153,7 @@ class TestAPIIdentifierConsistency:
|
||||
- Both fields are present and distinct
|
||||
"""
|
||||
import uuid
|
||||
|
||||
# Add an item first with unique key
|
||||
unique_suffix = str(uuid.uuid4())[:8]
|
||||
unique_key = f"one-piece-{unique_suffix}"
|
||||
@ -470,6 +471,7 @@ class TestEndToEndIdentifierFlow:
|
||||
- All responses contain correct identifiers
|
||||
"""
|
||||
import uuid
|
||||
|
||||
# Use unique key to avoid conflicts with other tests
|
||||
unique_suffix = str(uuid.uuid4())[:8]
|
||||
unique_key = f"bleach-tybw-{unique_suffix}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user