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