mirror of
https://github.com/Screenly/Anthias.git
synced 2026-04-17 21:18:04 -04:00
- Delete legacy API versions (v1, v1.1, v1.2), keep only v2 - Replace Celery + Redis with threading-based background tasks - Replace React/TypeScript/webpack frontend with Django templates + HTMX + Bootstrap 5 - Replace ZMQ pub/sub with Django Channels WebSocket - Replace Nginx with WhiteNoise for static file serving - Replace Gunicorn with Daphne (ASGI) for WebSocket support - Simplify Docker from 6 services to 2 (server + viewer) - Migrate test suite from unittest to pytest - Remove ~20,000 lines of code and dozens of dependencies Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
788 B
Python
32 lines
788 B
Python
"""
|
|
Common test utilities and constants for the Anthias API tests.
|
|
"""
|
|
|
|
from django.urls import reverse
|
|
|
|
ASSET_LIST_V2_URL = reverse('api:asset_list_v2')
|
|
ASSET_CREATION_DATA = {
|
|
'name': 'Anthias',
|
|
'uri': 'https://anthias.screenly.io',
|
|
'start_date': '2019-08-24T14:15:22Z',
|
|
'end_date': '2029-08-24T14:15:22Z',
|
|
'duration': 20,
|
|
'mimetype': 'webpage',
|
|
'is_enabled': True,
|
|
'nocache': False,
|
|
'play_order': 0,
|
|
'skip_asset_check': False,
|
|
}
|
|
ASSET_UPDATE_DATA = {
|
|
'name': 'Anthias',
|
|
'uri': 'https://anthias.screenly.io',
|
|
'start_date': '2019-08-24T14:15:22Z',
|
|
'end_date': '2029-08-24T14:15:22Z',
|
|
'duration': 15,
|
|
'mimetype': 'webpage',
|
|
'is_enabled': True,
|
|
'nocache': False,
|
|
'play_order': 0,
|
|
'skip_asset_check': False,
|
|
}
|