Files
Aniworld/tests/robot/start_server.sh
Lukas 07890aa464 test: create unresolved folder test fixtures
Add test anime folders for unresolved folder API tests.
Update test data from 'SomeFolder' to 'Unknown Anime (2020)'.
Remove stale Task 16 notes from Docs/tasks.md.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-27 18:15:09 +02:00

18 lines
897 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
# Create test anime folders that will be tracked as unresolved
mkdir -p "/tmp/aniworld_test_anime/Attack on Titan (2013)"
mkdir -p "/tmp/aniworld_test_anime/Unknown Anime (2020)"
mkdir -p "/tmp/aniworld_test_anime/Test Series (2024)"
# 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