mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
Fix lint (#8060)
This commit is contained in:
@@ -154,7 +154,7 @@ describe("RepoConnector", () => {
|
||||
expect(createConversationSpy).not.toHaveBeenCalled();
|
||||
|
||||
// select a repository from the dropdown
|
||||
const dropdown = await waitFor(() =>
|
||||
const dropdown = await waitFor(() =>
|
||||
within(repoConnector).getByTestId("repo-dropdown")
|
||||
);
|
||||
await userEvent.click(dropdown);
|
||||
|
||||
@@ -70,7 +70,7 @@ def check_dependencies(code_repo_path: str, poetry_venvs_path: str):
|
||||
server = libtmux.Server()
|
||||
try:
|
||||
session = server.new_session(session_name='test-session')
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
raise ValueError('tmux is not properly installed or available on the path.')
|
||||
pane = session.attached_pane
|
||||
pane.send_keys('echo "test"')
|
||||
|
||||
@@ -13,12 +13,13 @@ from openhands.resolver.send_pull_request import (
|
||||
apply_patch,
|
||||
initialize_repo,
|
||||
load_single_resolver_output,
|
||||
main,
|
||||
make_commit,
|
||||
process_single_issue,
|
||||
send_pull_request,
|
||||
update_existing_pull_request,
|
||||
)
|
||||
from openhands.resolver.send_pull_request import main
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_output_dir():
|
||||
@@ -1104,7 +1105,6 @@ def test_main(
|
||||
mock_process_single_issue,
|
||||
mock_parser,
|
||||
):
|
||||
|
||||
# Setup mock parser
|
||||
mock_args = MagicMock()
|
||||
mock_args.token = None
|
||||
@@ -1171,7 +1171,6 @@ def test_main(
|
||||
mock_path_exists.assert_called_with('/mock/output')
|
||||
mock_load_single_resolver_output.assert_called_with('/mock/output/output.jsonl', 42)
|
||||
|
||||
|
||||
# Test for invalid issue number
|
||||
mock_args.issue_number = 'invalid'
|
||||
with pytest.raises(ValueError):
|
||||
|
||||
@@ -14,12 +14,12 @@ from openhands.resolver.send_pull_request import (
|
||||
apply_patch,
|
||||
initialize_repo,
|
||||
load_single_resolver_output,
|
||||
main,
|
||||
make_commit,
|
||||
process_single_issue,
|
||||
send_pull_request,
|
||||
update_existing_pull_request,
|
||||
)
|
||||
from openhands.resolver.send_pull_request import main
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
@@ -1007,7 +1007,6 @@ def test_main(
|
||||
mock_process_single_issue,
|
||||
mock_parser,
|
||||
):
|
||||
|
||||
# Setup mock parser
|
||||
mock_args = MagicMock()
|
||||
mock_args.token = None
|
||||
|
||||
Reference in New Issue
Block a user