diff --git a/Docs/tasks.md b/Docs/tasks.md index b547117..ffee05a 100644 --- a/Docs/tasks.md +++ b/Docs/tasks.md @@ -1,12 +1,3 @@ -## Task 16: Empty Schedule Days — Should reject empty schedule_days with 422 - -**Test Result:** FAIL — `Url: http://127.0.0.1:8765/api/scheduler/config Expected status: 422 != 200` - -**Instructions:** -The `Empty Schedule Days` API test sends an empty `schedule_days` value and expects a `422 Unprocessable Entity`, but the server returns `200 OK`. Review the scheduler config validation. The endpoint should reject empty schedule_days and return 422. - ---- - ## Task 17: List Unresolved Folders — Should return non-empty list when folders exist **Test Result:** FAIL — `'[]' should not be empty` diff --git a/tests/robot/api/setup.robot b/tests/robot/api/setup.robot index 681c73b..6467f1e 100644 --- a/tests/robot/api/setup.robot +++ b/tests/robot/api/setup.robot @@ -24,12 +24,12 @@ List Unresolved Folders Get Unresolved Folder Details [Documentation] Get details for a specific unresolved folder. - ${resp}= Get Unresolved Folder Details SomeFolder + ${resp}= Get Unresolved Folder Details Unknown Anime (2020) Response Should Have Status ${resp} 200 Response Should Be Valid JSON ${resp} Resolve Folder With Provider Key [Documentation] Resolve an unresolved folder by mapping it to a provider key. - ${resp}= Resolve Folder SomeFolder attack-on-titan + ${resp}= Resolve Folder Unknown Anime (2020) attack-on-titan Response Should Have Status ${resp} 200 Response Should Be Valid JSON ${resp} diff --git a/tests/robot/start_server.sh b/tests/robot/start_server.sh index a38522d..84defe8 100644 --- a/tests/robot/start_server.sh +++ b/tests/robot/start_server.sh @@ -5,6 +5,10 @@ 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"