============================= test session starts ============================= platform win32 -- Python 3.13.5, pytest-9.0.2, pluggy-1.6.0 -- C:\Users\megaa\AppData\Local\Programs\Python\Python313\python.exe cachedir: .pytest_cache rootdir: C:\Users\megaa\Downloads\drone_env configfile: pyproject.toml plugins: anyio-4.12.1 collecting ... collected 15 items tests/test_api.py::test_health PASSED [ 6%] tests/test_api.py::test_root PASSED [ 13%] tests/test_api.py::test_tasks_list PASSED [ 20%] tests/test_api.py::test_reset_default PASSED [ 26%] tests/test_api.py::test_reset_with_task PASSED [ 33%] tests/test_api.py::test_step_returns_observation PASSED [ 40%] tests/test_api.py::test_state_endpoint PASSED [ 46%] tests/test_api.py::test_grade_known_task PASSED [ 53%] tests/test_api.py::test_grade_unknown_task PASSED [ 60%] tests/test_api.py::test_path_history_after_steps PASSED [ 66%] tests/test_api.py::test_reward_in_range PASSED [ 73%] tests/test_api.py::test_battery_decreases PASSED [ 80%] tests/test_api.py::test_analyse_endpoint FAILED [ 86%] tests/test_api.py::test_analyse_unknown_task PASSED [ 93%] tests/test_api.py::test_full_episode_doesnt_crash PASSED [100%] ================================== FAILURES =================================== ____________________________ test_analyse_endpoint ____________________________ def test_analyse_endpoint(): r = client.get("/analyse/easy_delivery") assert r.status_code == 200 data = r.json() # Either has data or the "no episodes yet" message > assert "task" in data or "error" in data E AssertionError: assert ('task' in {'action_distribution': {'DOWN': 137, 'LEFT': 105, 'RIGHT': 161, 'UP': 139, ...}, 'avg_deliveries': '0.2', 'avg_reward': -2.632, 'avg_steps': 27.4, ...} or 'error' in {'action_distribution': {'DOWN': 137, 'LEFT': 105, 'RIGHT': 161, 'UP': 139, ...}, 'avg_deliveries': '0.2', 'avg_reward': -2.632, 'avg_steps': 27.4, ...}) tests\test_api.py:135: AssertionError =========================== short test summary info =========================== FAILED tests/test_api.py::test_analyse_endpoint - AssertionError: assert ('ta... ======================== 1 failed, 14 passed in 9.79s =========================