- models.py: episodeDict getter now catches DetachedInstanceError when episodes accessed on newly created/synced series - anime.py: added error logging for failed series detail retrieval - fastapi_app.py: raise auth rate limit to 100 in test mode (ANIWORLD_TESTING=1) to avoid 429 during rapid test execution - auth_service.py: skip locked account check in test mode - robot tests: suite setup now configures auth once, tests verify 'already configured' behavior to avoid re-setup conflicts Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
14 lines
663 B
Bash
14 lines
663 B
Bash
#!/bin/bash
|
|
# Wrapper script to start the Aniworld FastAPI server for Robot Framework tests
|
|
# Uses a fresh test database and anime directory so each run starts unconfigured.
|
|
cd /home/lukas/Volume/repo/Aniworld
|
|
rm -f /tmp/aniworld_test.db
|
|
rm -rf /tmp/aniworld_test_anime
|
|
mkdir -p /tmp/aniworld_test_anime
|
|
# Remove existing config so the app starts in an unconfigured state
|
|
rm -f data/config.json
|
|
export DATABASE_URL="sqlite:////tmp/aniworld_test.db"
|
|
export ANIME_DIRECTORY="/tmp/aniworld_test_anime"
|
|
export ANIWORLD_TESTING="1"
|
|
exec /home/lukas/miniconda3/envs/AniWorld/bin/python -m uvicorn src.server.fastapi_app:app --host 127.0.0.1 --port 8765 --no-access-log
|