This commit is contained in:
Engel Nyst
2025-04-24 16:34:22 +02:00
committed by GitHub
parent db01cd39d5
commit 91fff77ffe
4 changed files with 5 additions and 7 deletions

View File

@@ -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);

View File

@@ -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"')

View File

@@ -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):

View File

@@ -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