Skip to content

(Python)Getting Error while running pytest on fresh repo by default #188

@DineshThumma9

Description

@DineshThumma9

I have ran uv run pytest on freshly created repo just installed deps and activates venv
I get error saying i need to do npm install on nodejs module first or set a cli path to copilot something this should be mentioned in docs prerequisites requiring for running test if this was always the case
also i get 29passed , 2 skipped and 69 other errors regarding proxy Failed to read Proxy URL
i haven't seen any prerequisites or setting up URL before running
It seems there is issue with harness package or dependency in nodejs module due to which i get Failed to read Proxy URL or Timeout Error
I can't find what is exactly need to be fixed

On running uv run pytest first time

    raise RuntimeError(
E   RuntimeError: CLI not found. Set COPILOT_CLI_PATH or run 'npm install' in the nodejs directory.
============================================= short test summary info =============================================
ERROR e2e - RuntimeError: CLI not found. Set COPILOT_CLI_PATH or run 'npm install' in the nodejs directory.
ERROR test_client.py - RuntimeError: CLI not found. Set COPILOT_CLI_PATH or run 'npm install' in the nodejs directory.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================ 2 errors in 0.49s ================================================

after i run npm install in nodejs

==================================================================================== short test summary info ====================================================================================
ERROR e2e/test_client.py::TestClient::test_should_start_and_connect_to_server_using_stdio - RuntimeError: Failed to read proxy URL
ERROR e2e/test_client.py::TestClient::test_should_start_and_connect_to_server_using_tcp - RuntimeError: Failed to read proxy URL
ERROR e2e/test_client.py::TestClient::test_should_return_errors_on_failed_cleanup - RuntimeError: Failed to read proxy URL
ERROR e2e/test_client.py::TestClient::test_should_force_stop_without_cleanup - RuntimeError: Failed to read proxy URL
ERROR e2e/test_client.py::TestClient::test_should_get_status_with_version_and_protocol_info - RuntimeError: Failed to read proxy URL
ERROR e2e/test_client.py::TestClient::test_should_get_auth_status - RuntimeError: Failed to read proxy URL
ERROR e2e/test_client.py::TestClient::test_should_list_models_when_authenticated - RuntimeError: Failed to read proxy URL
ERROR e2e/test_compaction.py::TestCompaction::test_should_trigger_compaction_with_low_threshold_and_emit_events - RuntimeError: Failed to read proxy URL
ERROR e2e/test_compaction.py::TestCompaction::test_should_not_emit_compaction_events_when_infinite_sessions_disabled - RuntimeError: Failed to read proxy URL
ERROR e2e/test_mcp_and_agents.py::TestMCPServers::test_accept_mcp_server_config_on_create - RuntimeError: Failed to read proxy URL
ERROR e2e/test_mcp_and_agents.py::TestMCPServers::test_accept_mcp_server_config_on_resume - RuntimeError: Failed to read proxy URL
ERROR e2e/test_mcp_and_agents.py::TestMCPServers::test_handle_multiple_mcp_servers - RuntimeError: Failed to read proxy URL
ERROR e2e/test_mcp_and_agents.py::TestCustomAgents::test_accept_custom_agent_config_on_create - RuntimeError: Failed to read proxy URL
ERROR e2e/test_mcp_and_agents.py::TestCustomAgents::test_accept_custom_agent_config_on_resume - RuntimeError: Failed to read proxy URL
ERROR e2e/test_mcp_and_agents.py::TestCustomAgents::test_handle_custom_agent_with_tools - RuntimeError: Failed to read proxy URL
ERROR e2e/test_mcp_and_agents.py::TestCustomAgents::test_handle_custom_agent_with_mcp_servers - RuntimeError: Failed to read proxy URL
ERROR e2e/test_mcp_and_agents.py::TestCustomAgents::test_handle_multiple_custom_agents - RuntimeError: Failed to read proxy URL
ERROR e2e/test_mcp_and_agents.py::TestCombinedConfiguration::test_accept_mcp_servers_and_custom_agents - RuntimeError: Failed to read proxy URL
ERROR e2e/test_permissions.py::TestPermissions::test_permission_handler_for_write_operations - RuntimeError: Failed to read proxy URL
ERROR e2e/test_permissions.py::TestPermissions::test_permission_handler_for_shell_commands - RuntimeError: Failed to read proxy URL
ERROR e2e/test_permissions.py::TestPermissions::test_deny_permission - RuntimeError: Failed to read proxy URL
ERROR e2e/test_permissions.py::TestPermissions::test_without_permission_handler - RuntimeError: Failed to read proxy URL
ERROR e2e/test_permissions.py::TestPermissions::test_async_permission_handler - RuntimeError: Failed to read proxy URL
ERROR e2e/test_permissions.py::TestPermissions::test_resume_session_with_permission_handler - RuntimeError: Failed to read proxy URL
ERROR e2e/test_permissions.py::TestPermissions::test_permission_handler_errors - RuntimeError: Failed to read proxy URL
ERROR e2e/test_permissions.py::TestPermissions::test_tool_call_id_in_permission_requests - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_create_and_destroy_sessions - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_have_stateful_conversation - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_create_a_session_with_appended_systemMessage_config - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_create_a_session_with_replaced_systemMessage_config - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_create_a_session_with_availableTools - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_create_a_session_with_excludedTools - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_resume_a_session_using_the_same_client - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_resume_a_session_using_a_new_client - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_throw_error_resuming_nonexistent_session - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_list_sessions - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_delete_session - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_create_session_with_custom_tool - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_create_session_with_custom_provider - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_create_session_with_azure_provider - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_resume_session_with_custom_provider - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_abort_a_session - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_receive_streaming_delta_events_when_streaming_is_enabled - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_pass_streaming_option_to_session_creation - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_receive_session_events - RuntimeError: Failed to read proxy URL
ERROR e2e/test_session.py::TestSessions::test_should_create_session_with_custom_config_dir - RuntimeError: Failed to read proxy URL
ERROR e2e/test_skills.py::TestSkillBehavior::test_should_load_and_apply_skill_from_skilldirectories - RuntimeError: Failed to read proxy URL
ERROR e2e/test_skills.py::TestSkillBehavior::test_should_not_apply_skill_when_disabled_via_disabledskills - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools.py::TestTools::test_invokes_built_in_tools - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools.py::TestTools::test_invokes_custom_tool - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools.py::TestTools::test_handles_tool_calling_errors - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools.py::TestTools::test_can_receive_and_return_complex_types - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestDefineTool::test_creates_tool_with_correct_name_and_description - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestDefineTool::test_infers_name_from_function - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestDefineTool::test_generates_schema_from_pydantic_model - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestDefineTool::test_handler_receives_typed_arguments - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestDefineTool::test_handler_receives_invocation - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestDefineTool::test_zero_param_handler - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestDefineTool::test_invocation_only_handler - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestDefineTool::test_params_only_handler - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestDefineTool::test_handler_error_is_hidden_from_llm - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestDefineTool::test_function_style_api - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestDefineTool::test_function_style_requires_name - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestNormalizeResult::test_none_returns_empty_success - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestNormalizeResult::test_string_passes_through - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestNormalizeResult::test_dict_with_result_type_passes_through - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestNormalizeResult::test_dict_is_json_serialized - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestNormalizeResult::test_list_is_json_serialized - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestNormalizeResult::test_pydantic_model_is_serialized - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestNormalizeResult::test_list_of_pydantic_models_is_serialized - RuntimeError: Failed to read proxy URL
ERROR e2e/test_tools_unit.py::TestNormalizeResult::test_raises_for_unserializable_value - RuntimeError: Failed to read proxy URL

Environment:

OS:Linux(Fedora Workstation 43)
Python Version:3.14.0
Nodejs:22.20.0
No Proxy

Commands i used

uv venv
source .venv/bin/activate
npm install in nodejs
uv run pytest
``
is this specific to mine

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions