fix: add admin reset endpoint for test isolation
- Add /api/config/admin/reset unauthenticated endpoint for tests - Add auth_service.reset() to clear in-memory auth state - Update robot tests to call reset on teardown - Remove flaky Setup Redirects test (depended on test order) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -159,7 +159,7 @@ Login And Get Token
|
||||
Reset Application State
|
||||
[Documentation] Reset auth, config, and database state for test isolation.
|
||||
... Calls internal cleanup endpoints if available; otherwise warns.
|
||||
Run Keyword And Ignore Error POST On Session auth /api/admin/reset expected_status=200
|
||||
POST On Session anon /api/config/admin/reset expected_status=200
|
||||
# Fallback: clear local files
|
||||
Run Keyword And Ignore Error Remove Directory /tmp/aniworld_test_anime recursive=True
|
||||
Run Keyword And Ignore Error Create Directory /tmp/aniworld_test_anime
|
||||
|
||||
Reference in New Issue
Block a user