mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
chore(lint): Apply comprehensive linting and formatting fixes (#10287)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -30,8 +30,7 @@ def _get_config(trajectory_name: str, agent: str = OH_DEFAULT_AGENT):
|
||||
|
||||
|
||||
def test_simple_replay(temp_dir, runtime_cls, run_as_openhands):
|
||||
"""
|
||||
A simple replay test that involves simple terminal operations and edits
|
||||
"""A simple replay test that involves simple terminal operations and edits
|
||||
(creating a simple 2048 game), using the default agent
|
||||
"""
|
||||
runtime, config = _load_runtime(temp_dir, runtime_cls, run_as_openhands)
|
||||
@@ -54,8 +53,7 @@ def test_simple_replay(temp_dir, runtime_cls, run_as_openhands):
|
||||
|
||||
|
||||
def test_simple_gui_replay(temp_dir, runtime_cls, run_as_openhands):
|
||||
"""
|
||||
A simple replay test that involves simple terminal operations and edits
|
||||
"""A simple replay test that involves simple terminal operations and edits
|
||||
(writing a Vue.js App), using the default agent
|
||||
|
||||
Note:
|
||||
@@ -85,8 +83,7 @@ def test_simple_gui_replay(temp_dir, runtime_cls, run_as_openhands):
|
||||
|
||||
|
||||
def test_replay_wrong_initial_state(temp_dir, runtime_cls, run_as_openhands):
|
||||
"""
|
||||
Replay requires a consistent initial state to start with, otherwise it might
|
||||
"""Replay requires a consistent initial state to start with, otherwise it might
|
||||
be producing garbage. The trajectory used in this test assumes existence of
|
||||
a file named 'game_2048.py', which doesn't exist when we replay the trajectory
|
||||
(so called inconsistent initial states). This test demonstrates how this would
|
||||
@@ -121,8 +118,7 @@ def test_replay_wrong_initial_state(temp_dir, runtime_cls, run_as_openhands):
|
||||
|
||||
|
||||
def test_replay_basic_interactions(temp_dir, runtime_cls, run_as_openhands):
|
||||
"""
|
||||
Replay a trajectory that involves interactions, i.e. with user messages
|
||||
"""Replay a trajectory that involves interactions, i.e. with user messages
|
||||
in the middle. This tests two things:
|
||||
1) The controller should be able to replay all actions without human
|
||||
interference (no asking for user input).
|
||||
|
||||
Reference in New Issue
Block a user