Conghao97's picture tcftrees's picture
ProgramGen release
d086025
Raw History Blame Contribute Delete
80.9 kB
{ "passed_ptp": [ "tests/test_client/test_context_manager.py::TestPHXChannelsClientAEnter::test_returns_self_when_using_as_with_context_manager", "tests/test_client/test_context_manager.py::TestPHXChannelsClientAExit::test_calls_shutdown_with_correct_reason", "tests/test_client/test_event_processor.py::TestPHXChannelsClientEventProcessor::test_waits_on_client_start_event", "tests/test_client/test_event_processor.py::TestPHXChannelsClientEventProcessor::test_only_event_handlers_used_for_event_no_topic", "tests/test_client/test_event_processor.py::TestPHXChannelsClientEventProcessor::test_all_event_handlers_used_for_event_with_topic", "tests/test_client/test_event_processor.py::TestPHXChannelsClientEventProcessor::test_event_handler_errors_intercepted_and_logged", "tests/test_client/test_init.py::TestPHXChannelsClientInit::test_async_logger_child_set_as_logger_on_client", "tests/test_client/test_init.py::TestPHXChannelsClientInit::test_channel_socket_url_has_token_if_specified", "tests/test_client/test_init.py::TestPHXChannelsClientInit::test_channel_socket_url_token_is_made_url_safe", "tests/test_client/test_init.py::TestPHXChannelsClientInit::test_event_loop_set_by_default_if_not_specified", "tests/test_client/test_init.py::TestPHXChannelsClientInit::test_event_loop_set_to_argument_if_specified", "tests/test_client/test_parse_message.py::TestPHXChannelsClientParseMessage::test_returns_phx_message_for_event_socket_message", "tests/test_client/test_parse_message.py::TestPHXChannelsClientParseMessage::test_returns_phx_event_message_for_event_socket_message", "tests/test_client/test_process_topic_registration_responses.py::TestPHXChannelsClientProcessTopicRegistrationResponses::test_updates_registration_status_for_success", "tests/test_client/test_process_topic_registration_responses.py::TestPHXChannelsClientProcessTopicRegistrationResponses::test_updates_registration_status_for_failed", "tests/test_client/test_process_websocket_messages.py::TestPHXChannelsClientProcessWebsocketMessages::test_raises_exception_on_phx_close_event", "tests/test_client/test_process_websocket_messages.py::TestPHXChannelsClientProcessWebsocketMessages::test_raises_exception_on_phx_error_event", "tests/test_client/test_process_websocket_messages.py::TestPHXChannelsClientProcessWebsocketMessages::test_puts_message_in_topic_registration_queue_if_appropriate", "tests/test_client/test_process_websocket_messages.py::TestPHXChannelsClientProcessWebsocketMessages::test_does_not_put_message_in_topic_registration_queue_if_not_phx_reply", "tests/test_client/test_process_websocket_messages.py::TestPHXChannelsClientProcessWebsocketMessages::test_does_not_put_message_in_topic_registration_queue_if_registration_event_set", "tests/test_client/test_process_websocket_messages.py::TestPHXChannelsClientProcessWebsocketMessages::test_event_ignored_if_no_event_handler_registered", "tests/test_client/test_process_websocket_messages.py::TestPHXChannelsClientProcessWebsocketMessages::test_put_message_in_event_handler_queue_handlers_exist", "tests/test_client/test_register_event_handler.py::TestPHXChannelsClientRegisterEventHandler::test_event_added_to_event_handler_config", "tests/test_client/test_register_event_handler.py::TestPHXChannelsClientRegisterEventHandler::test_handlers_add_to_topic_handlers_if_topic_is_passed_in", "tests/test_client/test_register_event_handler.py::TestPHXChannelsClientRegisterEventHandler::test_events_with_the_same_name_are_grouped", "tests/test_client/test_register_topic_subscription.py::TestPHXChannelsClientRegisterTopicSubscription::test_topic_registered_returns_event", "tests/test_client/test_register_topic_subscription.py::TestPHXChannelsClientRegisterTopicSubscription::test_registering_the_same_topic_multiple_times_raises_exception", "tests/test_client/test_send_message.py::TestPHXChannelsClientSendMessage::test_correct_message_passed_to_websocket_send", "tests/test_client/test_shutdown.py::TestPHXChannelsClientShutdown::test_if_websocket_is_not_none_close_task_queued", "tests/test_client/test_shutdown.py::TestPHXChannelsClientShutdown::test_if_topic_registration_task_is_not_none_cancel_task", "tests/test_client/test_shutdown.py::TestPHXChannelsClientShutdown::test_any_event_handlers_registered_tasks_are_cancelled", "tests/test_client/test_shutdown.py::TestPHXChannelsClientShutdown::test_if_executor_pool_is_not_none_call_shutdown", "tests/test_client/test_shutdown.py::TestPHXChannelsClientShutdown::test_if_executor_pool_is_not_none_call_shutdown_with_no_wait", "tests/test_client/test_start_processing.py::TestPHXChannelsClientStartProcessing::test_does_nothing_if_no_topics_registered", "tests/test_client/test_start_processing.py::TestPHXChannelsClientStartProcessing::test_threadpool_executor_used_if_no_executor_pool_specified", "tests/test_client/test_start_processing.py::TestPHXChannelsClientStartProcessing::test_websocket_client_called_with_url", "tests/test_client/test_start_processing.py::TestPHXChannelsClientStartProcessing::test_signal_handlers_functions_created_and_registered_correctly", "tests/test_client/test_start_processing.py::TestPHXChannelsClientStartProcessing::test_subscribe_to_registered_topics_called_with_websocket", "tests/test_client/test_start_processing.py::TestPHXChannelsClientStartProcessing::test_process_websocket_messages_called_with_websocket", "tests/test_client/test_subscribe_to_registered_topics.py::TestPHXChannelsClientSubscribeToRegisteredTopics::test_process_topic_registration_responses_task_started", "tests/test_client/test_subscribe_to_registered_topics.py::TestPHXChannelsClientSubscribeToRegisteredTopics::test_all_topics_in_topic_registration_status_dict_have_messages_sent", "tests/test_json_handler/test_decimal_serialiser.py::test_raises_type_error_if_not_a_decimal", "tests/test_json_handler/test_decimal_serialiser.py::test_returns_serialised_decimals", "tests/test_json_handler/test_deep_float_replace.py::test_returns_decimal_if_obj_is_float", "tests/test_json_handler/test_deep_float_replace.py::test_returns_obj_if_not_float", "tests/test_json_handler/test_deep_float_replace.py::test_converts_elements_of_a_list", "tests/test_json_handler/test_deep_float_replace.py::test_converts_elements_of_a_dict", "tests/test_json_handler/test_deep_float_replace.py::test_converts_floats_in_complex_object", "tests/test_json_handler/test_dumps.py::test_dumps_returns_json_string_and_handles_decimals", "tests/test_json_handler/test_loads.py::test_loads_returns_dictionary_and_handles_decimals_when_floats_to_decimal_true", "tests/test_json_handler/test_loads.py::test_loads_returns_dictionary_and_leaves_floats_as_floats_when_floats_to_decimal_false", "tests/test_phx_messages/test_phx_event_message.py::TestSubtopic::test_returns_subtopic_if_it_exists", "tests/test_phx_messages/test_phx_event_message.py::TestSubtopic::test_returns_none_if_it_does_not_exist", "tests/test_phx_messages/test_phx_message.py::TestSubtopic::test_returns_subtopic_if_it_exists", "tests/test_phx_messages/test_phx_message.py::TestSubtopic::test_returns_none_if_it_does_not_exist", "tests/test_utils.py::TestParseEvent::test_returns_event_enum_for_valid_phx_events", "tests/test_utils.py::TestParseEvent::test_returns_string_for_anything_that_is_not_a_phx_event", "tests/test_utils.py::TestMakeMessage::test_phx_event_message_returned_for_phx_event", "tests/test_utils.py::TestMakeMessage::test_phx_message_returned_for_other_events", "tests/test_utils.py::TestMakeMessage::test_none_payload_turned_into_empty_dict", "tests/test_utils.py::TestGenerateReference::test_returns_correctly_for_event" ], "test_files": [ "tests/__init__.py", "tests/conftest.py", "tests/strategy_utils.py", "tests/test_client/__init__.py", "tests/test_client/test_context_manager.py", "tests/test_client/test_event_processor.py", "tests/test_client/test_init.py", "tests/test_client/test_parse_message.py", "tests/test_client/test_process_topic_registration_responses.py", "tests/test_client/test_process_websocket_messages.py", "tests/test_client/test_register_event_handler.py", "tests/test_client/test_register_topic_subscription.py", "tests/test_client/test_send_message.py", "tests/test_client/test_shutdown.py", "tests/test_client/test_start_processing.py", "tests/test_client/test_subscribe_to_registered_topics.py", "tests/test_json_handler/__init__.py", "tests/test_json_handler/test_decimal_serialiser.py", "tests/test_json_handler/test_deep_float_replace.py", "tests/test_json_handler/test_dumps.py", "tests/test_json_handler/test_loads.py", "tests/test_phx_messages/__init__.py", "tests/test_phx_messages/test_phx_event_message.py", "tests/test_phx_messages/test_phx_message.py", "tests/test_utils.py", "tests/utils.py" ], "test_command": [ "bash", "-lc", "set -uo pipefail\nrun=(python3 -m pytest -vv --continue-on-collection-errors -o 'addopts=-p no:hypothesispytest' tests/test_client/test_context_manager.py tests/test_client/test_event_processor.py tests/test_client/test_init.py tests/test_client/test_parse_message.py tests/test_client/test_process_topic_registration_responses.py tests/test_client/test_process_websocket_messages.py tests/test_client/test_register_event_handler.py tests/test_client/test_register_topic_subscription.py tests/test_client/test_send_message.py tests/test_client/test_shutdown.py tests/test_client/test_start_processing.py tests/test_client/test_subscribe_to_registered_topics.py tests/test_json_handler/test_decimal_serialiser.py tests/test_json_handler/test_deep_float_replace.py tests/test_json_handler/test_dumps.py tests/test_json_handler/test_loads.py tests/test_phx_messages/test_phx_event_message.py tests/test_phx_messages/test_phx_message.py tests/test_utils.py)\nif [ -n \"${COVERAGE_FILE:-}\" ]; then run=(python3 -m coverage run --source=. -m pytest -vv --continue-on-collection-errors -o 'addopts=-p no:hypothesispytest' tests/test_client/test_context_manager.py tests/test_client/test_event_processor.py tests/test_client/test_init.py tests/test_client/test_parse_message.py tests/test_client/test_process_topic_registration_responses.py tests/test_client/test_process_websocket_messages.py tests/test_client/test_register_event_handler.py tests/test_client/test_register_topic_subscription.py tests/test_client/test_send_message.py tests/test_client/test_shutdown.py tests/test_client/test_start_processing.py tests/test_client/test_subscribe_to_registered_topics.py tests/test_json_handler/test_decimal_serialiser.py tests/test_json_handler/test_deep_float_replace.py tests/test_json_handler/test_dumps.py tests/test_json_handler/test_loads.py tests/test_phx_messages/test_phx_event_message.py tests/test_phx_messages/test_phx_message.py tests/test_utils.py); fi\ncollect=(python3 -m pytest -q -o 'addopts=-p no:hypothesispytest' tests/test_client/test_context_manager.py tests/test_client/test_event_processor.py tests/test_client/test_init.py tests/test_client/test_parse_message.py tests/test_client/test_process_topic_registration_responses.py tests/test_client/test_process_websocket_messages.py tests/test_client/test_register_event_handler.py tests/test_client/test_register_topic_subscription.py tests/test_client/test_send_message.py tests/test_client/test_shutdown.py tests/test_client/test_start_processing.py tests/test_client/test_subscribe_to_registered_topics.py tests/test_json_handler/test_decimal_serialiser.py tests/test_json_handler/test_deep_float_replace.py tests/test_json_handler/test_dumps.py tests/test_json_handler/test_loads.py tests/test_phx_messages/test_phx_event_message.py tests/test_phx_messages/test_phx_message.py tests/test_utils.py)\ncollected_output=$(\"${collect[@]}\" --collect-only)\ncollect_rc=$?\nif [ \"$collect_rc\" -ne 0 ] && [ \"$collect_rc\" -ne 5 ]; then\n printf \"%s\\n\" \"$collected_output\" >&2\n printf \"[programgen] test collection failed with exit code %s\\n\" \"$collect_rc\" >&2\n exit \"$collect_rc\"\nfi\nmapfile -t collected < <(printf \"%s\\n\" \"$collected_output\" | sed -n '/::/p' | sed 's/[[:space:]]*$//')\nif [ \"${#collected[@]}\" -gt 500 ]; then\n while IFS= read -r id; do run+=(\"--deselect=$id\"); done < <(printf \"%s\\n\" \"${collected[@]}\" | awk -F'::' -v limit=500 '{f=$1; n[f]++; idx[f,n[f]]=NR; all[NR]=$0; if(!(f in seen)){seen[f]=1; order[++m]=f}} END{d=1; c=0; while(c<limit){a=0; for(i=1;i<=m;i++){f=order[i]; if(d<=n[f]){keep[idx[f,d]]=1; c++; a=1; if(c>=limit) break}} if(!a) break; d++} for(r=1;r<=NR;r++) if(!(r in keep)) print all[r]}')\nfi\n\"${run[@]}\"; exit $?" ], "test_payload_contract": { "schema_version": "programgen.test-payload-contract.v1", "test_files": [ "tests/__init__.py", "tests/conftest.py", "tests/strategy_utils.py", "tests/test_client/__init__.py", "tests/test_client/test_context_manager.py", "tests/test_client/test_event_processor.py", "tests/test_client/test_init.py", "tests/test_client/test_parse_message.py", "tests/test_client/test_process_topic_registration_responses.py", "tests/test_client/test_process_websocket_messages.py", "tests/test_client/test_register_event_handler.py", "tests/test_client/test_register_topic_subscription.py", "tests/test_client/test_send_message.py", "tests/test_client/test_shutdown.py", "tests/test_client/test_start_processing.py", "tests/test_client/test_subscribe_to_registered_topics.py", "tests/test_json_handler/__init__.py", "tests/test_json_handler/test_decimal_serialiser.py", "tests/test_json_handler/test_deep_float_replace.py", "tests/test_json_handler/test_dumps.py", "tests/test_json_handler/test_loads.py", "tests/test_phx_messages/__init__.py", "tests/test_phx_messages/test_phx_event_message.py", "tests/test_phx_messages/test_phx_message.py", "tests/test_utils.py", "tests/utils.py" ], "test_command": [ "bash", "-lc", "set -uo pipefail\nrun=(python3 -m pytest -vv --continue-on-collection-errors -o 'addopts=-p no:hypothesispytest' tests/test_client/test_context_manager.py tests/test_client/test_event_processor.py tests/test_client/test_init.py tests/test_client/test_parse_message.py tests/test_client/test_process_topic_registration_responses.py tests/test_client/test_process_websocket_messages.py tests/test_client/test_register_event_handler.py tests/test_client/test_register_topic_subscription.py tests/test_client/test_send_message.py tests/test_client/test_shutdown.py tests/test_client/test_start_processing.py tests/test_client/test_subscribe_to_registered_topics.py tests/test_json_handler/test_decimal_serialiser.py tests/test_json_handler/test_deep_float_replace.py tests/test_json_handler/test_dumps.py tests/test_json_handler/test_loads.py tests/test_phx_messages/test_phx_event_message.py tests/test_phx_messages/test_phx_message.py tests/test_utils.py)\nif [ -n \"${COVERAGE_FILE:-}\" ]; then run=(python3 -m coverage run --source=. -m pytest -vv --continue-on-collection-errors -o 'addopts=-p no:hypothesispytest' tests/test_client/test_context_manager.py tests/test_client/test_event_processor.py tests/test_client/test_init.py tests/test_client/test_parse_message.py tests/test_client/test_process_topic_registration_responses.py tests/test_client/test_process_websocket_messages.py tests/test_client/test_register_event_handler.py tests/test_client/test_register_topic_subscription.py tests/test_client/test_send_message.py tests/test_client/test_shutdown.py tests/test_client/test_start_processing.py tests/test_client/test_subscribe_to_registered_topics.py tests/test_json_handler/test_decimal_serialiser.py tests/test_json_handler/test_deep_float_replace.py tests/test_json_handler/test_dumps.py tests/test_json_handler/test_loads.py tests/test_phx_messages/test_phx_event_message.py tests/test_phx_messages/test_phx_message.py tests/test_utils.py); fi\ncollect=(python3 -m pytest -q -o 'addopts=-p no:hypothesispytest' tests/test_client/test_context_manager.py tests/test_client/test_event_processor.py tests/test_client/test_init.py tests/test_client/test_parse_message.py tests/test_client/test_process_topic_registration_responses.py tests/test_client/test_process_websocket_messages.py tests/test_client/test_register_event_handler.py tests/test_client/test_register_topic_subscription.py tests/test_client/test_send_message.py tests/test_client/test_shutdown.py tests/test_client/test_start_processing.py tests/test_client/test_subscribe_to_registered_topics.py tests/test_json_handler/test_decimal_serialiser.py tests/test_json_handler/test_deep_float_replace.py tests/test_json_handler/test_dumps.py tests/test_json_handler/test_loads.py tests/test_phx_messages/test_phx_event_message.py tests/test_phx_messages/test_phx_message.py tests/test_utils.py)\ncollected_output=$(\"${collect[@]}\" --collect-only)\ncollect_rc=$?\nif [ \"$collect_rc\" -ne 0 ] && [ \"$collect_rc\" -ne 5 ]; then\n printf \"%s\\n\" \"$collected_output\" >&2\n printf \"[programgen] test collection failed with exit code %s\\n\" \"$collect_rc\" >&2\n exit \"$collect_rc\"\nfi\nmapfile -t collected < <(printf \"%s\\n\" \"$collected_output\" | sed -n '/::/p' | sed 's/[[:space:]]*$//')\nif [ \"${#collected[@]}\" -gt 500 ]; then\n while IFS= read -r id; do run+=(\"--deselect=$id\"); done < <(printf \"%s\\n\" \"${collected[@]}\" | awk -F'::' -v limit=500 '{f=$1; n[f]++; idx[f,n[f]]=NR; all[NR]=$0; if(!(f in seen)){seen[f]=1; order[++m]=f}} END{d=1; c=0; while(c<limit){a=0; for(i=1;i<=m;i++){f=order[i]; if(d<=n[f]){keep[idx[f,d]]=1; c++; a=1; if(c>=limit) break}} if(!a) break; d++} for(r=1;r<=NR;r++) if(!(r in keep)) print all[r]}')\nfi\n\"${run[@]}\"; exit $?" ], "text_fixtures": [], "binary_fixtures": [], "nonportable_absolute_paths": [], "required_external_commands": [], "declared_console_scripts": [], "unresolved_external_commands": [] }, "unit_test": [ "tests.test_client.test_init::TestPHXChannelsClientInit::test_async_logger_child_set_as_logger_on_client", "tests.test_client.test_init::TestPHXChannelsClientInit::test_channel_socket_url_has_token_if_specified", "tests.test_client.test_init::TestPHXChannelsClientInit::test_channel_socket_url_token_is_made_url_safe", "tests.test_client.test_init::TestPHXChannelsClientInit::test_event_loop_set_by_default_if_not_specified", "tests.test_client.test_init::TestPHXChannelsClientInit::test_event_loop_set_to_argument_if_specified", "tests.test_client.test_parse_message::TestPHXChannelsClientParseMessage::test_returns_phx_message_for_event_socket_message", "tests.test_client.test_parse_message::TestPHXChannelsClientParseMessage::test_returns_phx_event_message_for_event_socket_message", "tests.test_client.test_register_event_handler::TestPHXChannelsClientRegisterEventHandler::test_event_added_to_event_handler_config", "tests.test_client.test_register_event_handler::TestPHXChannelsClientRegisterEventHandler::test_handlers_add_to_topic_handlers_if_topic_is_passed_in", "tests.test_client.test_register_event_handler::TestPHXChannelsClientRegisterEventHandler::test_events_with_the_same_name_are_grouped", "tests.test_client.test_register_topic_subscription::TestPHXChannelsClientRegisterTopicSubscription::test_topic_registered_returns_event", "tests.test_client.test_register_topic_subscription::TestPHXChannelsClientRegisterTopicSubscription::test_registering_the_same_topic_multiple_times_raises_exception", "tests.test_client.test_shutdown::TestPHXChannelsClientShutdown::test_if_websocket_is_not_none_close_task_queued", "tests.test_client.test_shutdown::TestPHXChannelsClientShutdown::test_if_topic_registration_task_is_not_none_cancel_task", "tests.test_client.test_shutdown::TestPHXChannelsClientShutdown::test_any_event_handlers_registered_tasks_are_cancelled", "tests.test_client.test_shutdown::TestPHXChannelsClientShutdown::test_if_executor_pool_is_not_none_call_shutdown", "tests.test_client.test_shutdown::TestPHXChannelsClientShutdown::test_if_executor_pool_is_not_none_call_shutdown_with_no_wait", "tests.test_json_handler.test_decimal_serialiser::test_raises_type_error_if_not_a_decimal", "tests.test_json_handler.test_decimal_serialiser::test_returns_serialised_decimals", "tests.test_json_handler.test_deep_float_replace::test_returns_decimal_if_obj_is_float", "tests.test_json_handler.test_deep_float_replace::test_returns_obj_if_not_float", "tests.test_json_handler.test_deep_float_replace::test_converts_elements_of_a_list", "tests.test_json_handler.test_deep_float_replace::test_converts_elements_of_a_dict", "tests.test_json_handler.test_deep_float_replace::test_converts_floats_in_complex_object", "tests.test_json_handler.test_dumps::test_dumps_returns_json_string_and_handles_decimals", "tests.test_json_handler.test_loads::test_loads_returns_dictionary_and_handles_decimals_when_floats_to_decimal_true", "tests.test_json_handler.test_loads::test_loads_returns_dictionary_and_leaves_floats_as_floats_when_floats_to_decimal_false", "tests.test_phx_messages.test_phx_event_message::TestSubtopic::test_returns_subtopic_if_it_exists", "tests.test_phx_messages.test_phx_event_message::TestSubtopic::test_returns_none_if_it_does_not_exist", "tests.test_phx_messages.test_phx_message::TestSubtopic::test_returns_subtopic_if_it_exists", "tests.test_phx_messages.test_phx_message::TestSubtopic::test_returns_none_if_it_does_not_exist", "tests.test_utils::TestParseEvent::test_returns_event_enum_for_valid_phx_events", "tests.test_utils::TestParseEvent::test_returns_string_for_anything_that_is_not_a_phx_event", "tests.test_utils::TestMakeMessage::test_phx_event_message_returned_for_phx_event", "tests.test_utils::TestMakeMessage::test_phx_message_returned_for_other_events", "tests.test_utils::TestMakeMessage::test_none_payload_turned_into_empty_dict", "tests.test_utils::TestGenerateReference::test_returns_correctly_for_event" ], "expected_test_count": 61, "measured_test_count": 61, "enumerated_test_count": 37, "test_count_source": "measured-suite", "python_install_contract": { "strategy": "editable-install", "project_root": ".", "package_roots": [ "." ], "build_backend": "flit_core.buildapi", "build_system_requires": [ "flit_core >=3.2,<4" ], "editable": true, "project_dependencies": [ "orjson ~= 3.6", "websockets ~= 9.1" ], "editable_requires": [], "runtime_strategy": "editable-install", "runtime_build_inputs": [ "README.md" ], "build_context_inputs": [], "distribution_name": "phx-events", "evidence": [ "./pyproject.toml" ], "errors": [], "isolate_build_backend": false, "schema_version": "programgen.python-install-contract.v7" }, "test_binary_files": [], "artifact_contract_version": "programgen.forward-harbor.v6", "renderer_schema_version": "programgen.forward-renderer.v4", "test_import_contract": [ { "test_file": "tests/conftest.py", "source_file": null, "import_root": "concurrent", "definition_path": null, "required_import_path": "concurrent.futures.ThreadPoolExecutor", "import_statement": "from concurrent.futures import ThreadPoolExecutor", "symbol": "ThreadPoolExecutor", "kind": "external", "classification": "external" }, { "test_file": "tests/conftest.py", "source_file": null, "import_root": "pytest", "definition_path": null, "required_import_path": "pytest", "import_statement": "import pytest", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/conftest.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.AsyncMock", "import_statement": "from unittest.mock import AsyncMock, MagicMock, patch", "symbol": "AsyncMock", "kind": "external", "classification": "external" }, { "test_file": "tests/conftest.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.MagicMock", "import_statement": "from unittest.mock import AsyncMock, MagicMock, patch", "symbol": "MagicMock", "kind": "external", "classification": "external" }, { "test_file": "tests/conftest.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.patch", "import_statement": "from unittest.mock import AsyncMock, MagicMock, patch", "symbol": "patch", "kind": "external", "classification": "external" }, { "test_file": "tests/strategy_utils.py", "source_file": null, "import_root": "hypothesis", "definition_path": null, "required_import_path": "hypothesis.strategies", "import_statement": "from hypothesis import strategies as st", "symbol": "strategies", "kind": "external", "classification": "external" }, { "test_file": "tests/strategy_utils.py", "source_file": null, "import_root": "hypothesis", "definition_path": null, "required_import_path": "hypothesis.strategies.DrawFn", "import_statement": "from hypothesis.strategies import composite, DrawFn, SearchStrategy", "symbol": "DrawFn", "kind": "external", "classification": "external" }, { "test_file": "tests/strategy_utils.py", "source_file": null, "import_root": "hypothesis", "definition_path": null, "required_import_path": "hypothesis.strategies.SearchStrategy", "import_statement": "from hypothesis.strategies import composite, DrawFn, SearchStrategy", "symbol": "SearchStrategy", "kind": "external", "classification": "external" }, { "test_file": "tests/strategy_utils.py", "source_file": null, "import_root": "hypothesis", "definition_path": null, "required_import_path": "hypothesis.strategies.composite", "import_statement": "from hypothesis.strategies import composite, DrawFn, SearchStrategy", "symbol": "composite", "kind": "external", "classification": "external" }, { "test_file": "tests/strategy_utils.py", "source_file": null, "import_root": "typing", "definition_path": null, "required_import_path": "typing.Any", "import_statement": "from typing import Any, Optional, TypedDict", "symbol": "Any", "kind": "external", "classification": "external" }, { "test_file": "tests/strategy_utils.py", "source_file": null, "import_root": "typing", "definition_path": null, "required_import_path": "typing.Optional", "import_statement": "from typing import Any, Optional, TypedDict", "symbol": "Optional", "kind": "external", "classification": "external" }, { "test_file": "tests/strategy_utils.py", "source_file": null, "import_root": "typing", "definition_path": null, "required_import_path": "typing.TypedDict", "import_statement": "from typing import Any, Optional, TypedDict", "symbol": "TypedDict", "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_context_manager.py", "source_file": "phx_events/client.py", "import_root": "phx_events", "definition_path": "phx_events.client.PHXChannelsClient", "required_import_path": "phx_events.client.PHXChannelsClient", "import_statement": "from phx_events.client import PHXChannelsClient", "symbol": "PHXChannelsClient", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_context_manager.py", "source_file": null, "import_root": "pytest", "definition_path": null, "required_import_path": "pytest", "import_statement": "import pytest", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_context_manager.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.patch", "import_statement": "from unittest.mock import patch", "symbol": "patch", "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_event_processor.py", "source_file": null, "import_root": "asyncio", "definition_path": null, "required_import_path": "asyncio", "import_statement": "import asyncio", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_event_processor.py", "source_file": null, "import_root": "concurrent", "definition_path": null, "required_import_path": "concurrent.futures.ThreadPoolExecutor", "import_statement": "from concurrent.futures import ThreadPoolExecutor", "symbol": "ThreadPoolExecutor", "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_event_processor.py", "source_file": null, "import_root": "logging", "definition_path": null, "required_import_path": "logging", "import_statement": "import logging", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_event_processor.py", "source_file": "phx_events/client.py", "import_root": "phx_events", "definition_path": "phx_events.client.PHXChannelsClient", "required_import_path": "phx_events.client.PHXChannelsClient", "import_statement": "from phx_events.client import PHXChannelsClient", "symbol": "PHXChannelsClient", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_event_processor.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.ChannelMessage", "required_import_path": "phx_events.phx_messages.ChannelMessage", "import_statement": "from phx_events.phx_messages import ChannelMessage, Event, Topic", "symbol": "ChannelMessage", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_event_processor.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.Event", "required_import_path": "phx_events.phx_messages.Event", "import_statement": "from phx_events.phx_messages import ChannelMessage, Event, Topic", "symbol": "Event", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_event_processor.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.Topic", "required_import_path": "phx_events.phx_messages.Topic", "import_statement": "from phx_events.phx_messages import ChannelMessage, Event, Topic", "symbol": "Topic", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_event_processor.py", "source_file": "phx_events/utils.py", "import_root": "phx_events", "definition_path": "phx_events.utils.make_message", "required_import_path": "phx_events.utils.make_message", "import_statement": "from phx_events.utils import make_message", "symbol": "make_message", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_event_processor.py", "source_file": null, "import_root": "pytest", "definition_path": null, "required_import_path": "pytest", "import_statement": "import pytest", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_event_processor.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.Mock", "import_statement": "from unittest.mock import Mock", "symbol": "Mock", "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_init.py", "source_file": null, "import_root": "asyncio", "definition_path": null, "required_import_path": "asyncio", "import_statement": "import asyncio", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_init.py", "source_file": "phx_events/async_logger.py", "import_root": "phx_events", "definition_path": "phx_events.async_logger.async_logger", "required_import_path": "phx_events.async_logger.async_logger", "import_statement": "from phx_events.async_logger import async_logger", "symbol": "async_logger", "kind": "dynamic-export", "classification": "local-dynamic" }, { "test_file": "tests/test_client/test_init.py", "source_file": "phx_events/client.py", "import_root": "phx_events", "definition_path": "phx_events.client.PHXChannelsClient", "required_import_path": "phx_events.client.PHXChannelsClient", "import_statement": "from phx_events.client import PHXChannelsClient", "symbol": "PHXChannelsClient", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_init.py", "source_file": null, "import_root": "pytest", "definition_path": null, "required_import_path": "pytest", "import_statement": "import pytest", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_init.py", "source_file": null, "import_root": "urllib", "definition_path": null, "required_import_path": "urllib.parse.urlencode", "import_statement": "from urllib.parse import urlencode", "symbol": "urlencode", "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_parse_message.py", "source_file": null, "import_root": "hypothesis", "definition_path": null, "required_import_path": "hypothesis.given", "import_statement": "from hypothesis import given", "symbol": "given", "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_parse_message.py", "source_file": "phx_events/client.py", "import_root": "phx_events", "definition_path": "phx_events.client.PHXChannelsClient", "required_import_path": "phx_events.client.PHXChannelsClient", "import_statement": "from phx_events.client import PHXChannelsClient", "symbol": "PHXChannelsClient", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_parse_message.py", "source_file": "phx_events/json_handler.py", "import_root": "phx_events", "definition_path": "phx_events.json_handler", "required_import_path": "phx_events.json_handler", "import_statement": "from phx_events import json_handler", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_client/test_parse_message.py", "source_file": "phx_events/json_handler.py", "import_root": "phx_events", "definition_path": "phx_events.json_handler.dumps", "required_import_path": "phx_events.json_handler.dumps", "import_statement": "from phx_events import json_handler", "symbol": "dumps", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_parse_message.py", "source_file": "phx_events/json_handler.py", "import_root": "phx_events", "definition_path": "phx_events.json_handler.loads", "required_import_path": "phx_events.json_handler.loads", "import_statement": "from phx_events import json_handler", "symbol": "loads", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_parse_message.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.PHXEvent", "required_import_path": "phx_events.phx_messages.PHXEvent", "import_statement": "from phx_events.phx_messages import PHXEvent, PHXEventMessage, PHXMessage", "symbol": "PHXEvent", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_parse_message.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.PHXEventMessage", "required_import_path": "phx_events.phx_messages.PHXEventMessage", "import_statement": "from phx_events.phx_messages import PHXEvent, PHXEventMessage, PHXMessage", "symbol": "PHXEventMessage", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_parse_message.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.PHXMessage", "required_import_path": "phx_events.phx_messages.PHXMessage", "import_statement": "from phx_events.phx_messages import PHXEvent, PHXEventMessage, PHXMessage", "symbol": "PHXMessage", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_parse_message.py", "source_file": "tests/strategy_utils.py", "import_root": "tests", "definition_path": "tests.strategy_utils.event_strategy", "required_import_path": "tests.strategy_utils.event_strategy", "import_statement": "from tests.strategy_utils import event_strategy, phx_event_strategy", "symbol": "event_strategy", "kind": "test-support", "classification": "test-support" }, { "test_file": "tests/test_client/test_parse_message.py", "source_file": "tests/strategy_utils.py", "import_root": "tests", "definition_path": "tests.strategy_utils.phx_event_strategy", "required_import_path": "tests.strategy_utils.phx_event_strategy", "import_statement": "from tests.strategy_utils import event_strategy, phx_event_strategy", "symbol": "phx_event_strategy", "kind": "test-support", "classification": "test-support" }, { "test_file": "tests/test_client/test_process_topic_registration_responses.py", "source_file": "phx_events/client.py", "import_root": "phx_events", "definition_path": "phx_events.client.PHXChannelsClient", "required_import_path": "phx_events.client.PHXChannelsClient", "import_statement": "from phx_events.client import PHXChannelsClient", "symbol": "PHXChannelsClient", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_process_topic_registration_responses.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.PHXEvent", "required_import_path": "phx_events.phx_messages.PHXEvent", "import_statement": "from phx_events.phx_messages import PHXEvent, Topic", "symbol": "PHXEvent", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_process_topic_registration_responses.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.Topic", "required_import_path": "phx_events.phx_messages.Topic", "import_statement": "from phx_events.phx_messages import PHXEvent, Topic", "symbol": "Topic", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_process_topic_registration_responses.py", "source_file": "phx_events/topic_subscription.py", "import_root": "phx_events", "definition_path": "phx_events.topic_subscription.SubscriptionStatus", "required_import_path": "phx_events.topic_subscription.SubscriptionStatus", "import_statement": "from phx_events.topic_subscription import SubscriptionStatus", "symbol": "SubscriptionStatus", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_process_topic_registration_responses.py", "source_file": "phx_events/utils.py", "import_root": "phx_events", "definition_path": "phx_events.utils.make_message", "required_import_path": "phx_events.utils.make_message", "import_statement": "from phx_events.utils import make_message", "symbol": "make_message", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_process_topic_registration_responses.py", "source_file": null, "import_root": "pytest", "definition_path": null, "required_import_path": "pytest", "import_statement": "import pytest", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_process_websocket_messages.py", "source_file": null, "import_root": "logging", "definition_path": null, "required_import_path": "logging", "import_statement": "import logging", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_process_websocket_messages.py", "source_file": "phx_events/client.py", "import_root": "phx_events", "definition_path": "phx_events.client.PHXChannelsClient", "required_import_path": "phx_events.client.PHXChannelsClient", "import_statement": "from phx_events.client import PHXChannelsClient", "symbol": "PHXChannelsClient", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_process_websocket_messages.py", "source_file": "phx_events/exceptions.py", "import_root": "phx_events", "definition_path": "phx_events.exceptions.TopicClosedError", "required_import_path": "phx_events.exceptions.TopicClosedError", "import_statement": "from phx_events.exceptions import TopicClosedError", "symbol": "TopicClosedError", "kind": "exception", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_process_websocket_messages.py", "source_file": "phx_events/json_handler.py", "import_root": "phx_events", "definition_path": "phx_events.json_handler", "required_import_path": "phx_events.json_handler", "import_statement": "from phx_events import json_handler", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_client/test_process_websocket_messages.py", "source_file": "phx_events/json_handler.py", "import_root": "phx_events", "definition_path": "phx_events.json_handler.dumps", "required_import_path": "phx_events.json_handler.dumps", "import_statement": "from phx_events import json_handler", "symbol": "dumps", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_process_websocket_messages.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.Event", "required_import_path": "phx_events.phx_messages.Event", "import_statement": "from phx_events.phx_messages import Event, PHXEvent, Topic", "symbol": "Event", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_process_websocket_messages.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.PHXEvent", "required_import_path": "phx_events.phx_messages.PHXEvent", "import_statement": "from phx_events.phx_messages import Event, PHXEvent, Topic", "symbol": "PHXEvent", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_process_websocket_messages.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.Topic", "required_import_path": "phx_events.phx_messages.Topic", "import_statement": "from phx_events.phx_messages import Event, PHXEvent, Topic", "symbol": "Topic", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_process_websocket_messages.py", "source_file": "phx_events/utils.py", "import_root": "phx_events", "definition_path": "phx_events.utils.make_message", "required_import_path": "phx_events.utils.make_message", "import_statement": "from phx_events.utils import make_message", "symbol": "make_message", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_process_websocket_messages.py", "source_file": null, "import_root": "pytest", "definition_path": null, "required_import_path": "pytest", "import_statement": "import pytest", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_process_websocket_messages.py", "source_file": "tests/utils.py", "import_root": "tests", "definition_path": "tests.utils.async_iter", "required_import_path": "tests.utils.async_iter", "import_statement": "from tests.utils import async_iter", "symbol": "async_iter", "kind": "test-support", "classification": "test-support" }, { "test_file": "tests/test_client/test_register_event_handler.py", "source_file": null, "import_root": "asyncio", "definition_path": null, "required_import_path": "asyncio", "import_statement": "import asyncio", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_register_event_handler.py", "source_file": "phx_events/client.py", "import_root": "phx_events", "definition_path": "phx_events.client.PHXChannelsClient", "required_import_path": "phx_events.client.PHXChannelsClient", "import_statement": "from phx_events.client import PHXChannelsClient", "symbol": "PHXChannelsClient", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_register_event_handler.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.Event", "required_import_path": "phx_events.phx_messages.Event", "import_statement": "from phx_events.phx_messages import Event, Topic", "symbol": "Event", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_register_event_handler.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.Topic", "required_import_path": "phx_events.phx_messages.Topic", "import_statement": "from phx_events.phx_messages import Event, Topic", "symbol": "Topic", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_register_event_handler.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.Mock", "import_statement": "from unittest.mock import Mock, patch", "symbol": "Mock", "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_register_event_handler.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.patch", "import_statement": "from unittest.mock import Mock, patch", "symbol": "patch", "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_register_topic_subscription.py", "source_file": null, "import_root": "asyncio", "definition_path": null, "required_import_path": "asyncio", "import_statement": "import asyncio", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_register_topic_subscription.py", "source_file": "phx_events/client.py", "import_root": "phx_events", "definition_path": "phx_events.client.PHXChannelsClient", "required_import_path": "phx_events.client.PHXChannelsClient", "import_statement": "from phx_events.client import PHXChannelsClient", "symbol": "PHXChannelsClient", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_register_topic_subscription.py", "source_file": "phx_events/exceptions.py", "import_root": "phx_events", "definition_path": "phx_events.exceptions.PHXTopicTooManyRegistrationsError", "required_import_path": "phx_events.exceptions.PHXTopicTooManyRegistrationsError", "import_statement": "from phx_events.exceptions import PHXTopicTooManyRegistrationsError", "symbol": "PHXTopicTooManyRegistrationsError", "kind": "exception", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_register_topic_subscription.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.Topic", "required_import_path": "phx_events.phx_messages.Topic", "import_statement": "from phx_events.phx_messages import Topic", "symbol": "Topic", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_register_topic_subscription.py", "source_file": null, "import_root": "pytest", "definition_path": null, "required_import_path": "pytest", "import_statement": "import pytest", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_send_message.py", "source_file": null, "import_root": "hypothesis", "definition_path": null, "required_import_path": "hypothesis.given", "import_statement": "from hypothesis import given", "symbol": "given", "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_send_message.py", "source_file": "phx_events/client.py", "import_root": "phx_events", "definition_path": "phx_events.client.PHXChannelsClient", "required_import_path": "phx_events.client.PHXChannelsClient", "import_statement": "from phx_events.client import PHXChannelsClient", "symbol": "PHXChannelsClient", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_send_message.py", "source_file": "phx_events/json_handler.py", "import_root": "phx_events", "definition_path": "phx_events.json_handler", "required_import_path": "phx_events.json_handler", "import_statement": "from phx_events import json_handler", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_client/test_send_message.py", "source_file": "phx_events/json_handler.py", "import_root": "phx_events", "definition_path": "phx_events.json_handler.dumps", "required_import_path": "phx_events.json_handler.dumps", "import_statement": "from phx_events import json_handler", "symbol": "dumps", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_send_message.py", "source_file": "phx_events/utils.py", "import_root": "phx_events", "definition_path": "phx_events.utils.make_message", "required_import_path": "phx_events.utils.make_message", "import_statement": "from phx_events.utils import make_message", "symbol": "make_message", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_send_message.py", "source_file": null, "import_root": "pytest", "definition_path": null, "required_import_path": "pytest", "import_statement": "import pytest", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_send_message.py", "source_file": "tests/strategy_utils.py", "import_root": "tests", "definition_path": "tests.strategy_utils.channel_event_strategy", "required_import_path": "tests.strategy_utils.channel_event_strategy", "import_statement": "from tests.strategy_utils import channel_event_strategy", "symbol": "channel_event_strategy", "kind": "test-support", "classification": "test-support" }, { "test_file": "tests/test_client/test_send_message.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.AsyncMock", "import_statement": "from unittest.mock import AsyncMock", "symbol": "AsyncMock", "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_shutdown.py", "source_file": null, "import_root": "asyncio", "definition_path": null, "required_import_path": "asyncio.Queue", "import_statement": "from asyncio import Queue", "symbol": "Queue", "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_shutdown.py", "source_file": "phx_events/client.py", "import_root": "phx_events", "definition_path": "phx_events.client.PHXChannelsClient", "required_import_path": "phx_events.client.PHXChannelsClient", "import_statement": "from phx_events.client import PHXChannelsClient", "symbol": "PHXChannelsClient", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_shutdown.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.EventHandlerConfig", "required_import_path": "phx_events.phx_messages.EventHandlerConfig", "import_statement": "from phx_events.phx_messages import EventHandlerConfig", "symbol": "EventHandlerConfig", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_shutdown.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.AsyncMock", "import_statement": "from unittest.mock import AsyncMock, Mock", "symbol": "AsyncMock", "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_shutdown.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.Mock", "import_statement": "from unittest.mock import AsyncMock, Mock", "symbol": "Mock", "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_start_processing.py", "source_file": "phx_events/client.py", "import_root": "phx_events", "definition_path": "phx_events.client.PHXChannelsClient", "required_import_path": "phx_events.client.PHXChannelsClient", "import_statement": "from phx_events.client import PHXChannelsClient", "symbol": "PHXChannelsClient", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_start_processing.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.Topic", "required_import_path": "phx_events.phx_messages.Topic", "import_statement": "from phx_events.phx_messages import Topic", "symbol": "Topic", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_start_processing.py", "source_file": null, "import_root": "pytest", "definition_path": null, "required_import_path": "pytest", "import_statement": "import pytest", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_start_processing.py", "source_file": null, "import_root": "signal", "definition_path": null, "required_import_path": "signal", "import_statement": "import signal", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_start_processing.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.AsyncMock", "import_statement": "from unittest.mock import AsyncMock, Mock, patch", "symbol": "AsyncMock", "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_start_processing.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.Mock", "import_statement": "from unittest.mock import AsyncMock, Mock, patch", "symbol": "Mock", "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_start_processing.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.patch", "import_statement": "from unittest.mock import AsyncMock, Mock, patch", "symbol": "patch", "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_subscribe_to_registered_topics.py", "source_file": "phx_events/client.py", "import_root": "phx_events", "definition_path": "phx_events.client.PHXChannelsClient", "required_import_path": "phx_events.client.PHXChannelsClient", "import_statement": "from phx_events.client import PHXChannelsClient", "symbol": "PHXChannelsClient", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_subscribe_to_registered_topics.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.PHXEvent", "required_import_path": "phx_events.phx_messages.PHXEvent", "import_statement": "from phx_events.phx_messages import PHXEvent, Topic", "symbol": "PHXEvent", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_subscribe_to_registered_topics.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.Topic", "required_import_path": "phx_events.phx_messages.Topic", "import_statement": "from phx_events.phx_messages import PHXEvent, Topic", "symbol": "Topic", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_subscribe_to_registered_topics.py", "source_file": "phx_events/utils.py", "import_root": "phx_events", "definition_path": "phx_events.utils.make_message", "required_import_path": "phx_events.utils.make_message", "import_statement": "from phx_events.utils import make_message", "symbol": "make_message", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_client/test_subscribe_to_registered_topics.py", "source_file": null, "import_root": "pytest", "definition_path": null, "required_import_path": "pytest", "import_statement": "import pytest", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_subscribe_to_registered_topics.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.AsyncMock", "import_statement": "from unittest.mock import AsyncMock, patch", "symbol": "AsyncMock", "kind": "external", "classification": "external" }, { "test_file": "tests/test_client/test_subscribe_to_registered_topics.py", "source_file": null, "import_root": "unittest", "definition_path": null, "required_import_path": "unittest.mock.patch", "import_statement": "from unittest.mock import AsyncMock, patch", "symbol": "patch", "kind": "external", "classification": "external" }, { "test_file": "tests/test_json_handler/test_decimal_serialiser.py", "source_file": null, "import_root": "hypothesis", "definition_path": null, "required_import_path": "hypothesis.given", "import_statement": "from hypothesis import given, strategies as st", "symbol": "given", "kind": "external", "classification": "external" }, { "test_file": "tests/test_json_handler/test_decimal_serialiser.py", "source_file": null, "import_root": "hypothesis", "definition_path": null, "required_import_path": "hypothesis.strategies", "import_statement": "from hypothesis import given, strategies as st", "symbol": "strategies", "kind": "external", "classification": "external" }, { "test_file": "tests/test_json_handler/test_decimal_serialiser.py", "source_file": "phx_events/json_handler.py", "import_root": "phx_events", "definition_path": "phx_events.json_handler", "required_import_path": "phx_events.json_handler", "import_statement": "from phx_events import json_handler", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_json_handler/test_decimal_serialiser.py", "source_file": "phx_events/json_handler.py", "import_root": "phx_events", "definition_path": "phx_events.json_handler.decimal_serialiser", "required_import_path": "phx_events.json_handler.decimal_serialiser", "import_statement": "from phx_events import json_handler", "symbol": "decimal_serialiser", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_json_handler/test_decimal_serialiser.py", "source_file": null, "import_root": "pytest", "definition_path": null, "required_import_path": "pytest", "import_statement": "import pytest", "symbol": null, "kind": "external", "classification": "external" }, { "test_file": "tests/test_json_handler/test_deep_float_replace.py", "source_file": null, "import_root": "decimal", "definition_path": null, "required_import_path": "decimal.Decimal", "import_statement": "from decimal import Decimal", "symbol": "Decimal", "kind": "external", "classification": "external" }, { "test_file": "tests/test_json_handler/test_deep_float_replace.py", "source_file": null, "import_root": "hypothesis", "definition_path": null, "required_import_path": "hypothesis.given", "import_statement": "from hypothesis import given, strategies as st", "symbol": "given", "kind": "external", "classification": "external" }, { "test_file": "tests/test_json_handler/test_deep_float_replace.py", "source_file": null, "import_root": "hypothesis", "definition_path": null, "required_import_path": "hypothesis.strategies", "import_statement": "from hypothesis import given, strategies as st", "symbol": "strategies", "kind": "external", "classification": "external" }, { "test_file": "tests/test_json_handler/test_deep_float_replace.py", "source_file": "phx_events/json_handler.py", "import_root": "phx_events", "definition_path": "phx_events.json_handler", "required_import_path": "phx_events.json_handler", "import_statement": "from phx_events import json_handler", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_json_handler/test_deep_float_replace.py", "source_file": "phx_events/json_handler.py", "import_root": "phx_events", "definition_path": "phx_events.json_handler.deep_float_replace", "required_import_path": "phx_events.json_handler.deep_float_replace", "import_statement": "from phx_events import json_handler", "symbol": "deep_float_replace", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_json_handler/test_dumps.py", "source_file": null, "import_root": "datetime", "definition_path": null, "required_import_path": "datetime.datetime", "import_statement": "from datetime import datetime", "symbol": "datetime", "kind": "external", "classification": "external" }, { "test_file": "tests/test_json_handler/test_dumps.py", "source_file": null, "import_root": "decimal", "definition_path": null, "required_import_path": "decimal.Decimal", "import_statement": "from decimal import Decimal", "symbol": "Decimal", "kind": "external", "classification": "external" }, { "test_file": "tests/test_json_handler/test_dumps.py", "source_file": "phx_events/json_handler.py", "import_root": "phx_events", "definition_path": "phx_events.json_handler", "required_import_path": "phx_events.json_handler", "import_statement": "from phx_events import json_handler", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_json_handler/test_dumps.py", "source_file": "phx_events/json_handler.py", "import_root": "phx_events", "definition_path": "phx_events.json_handler.dumps", "required_import_path": "phx_events.json_handler.dumps", "import_statement": "from phx_events import json_handler", "symbol": "dumps", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_json_handler/test_loads.py", "source_file": null, "import_root": "datetime", "definition_path": null, "required_import_path": "datetime.datetime", "import_statement": "from datetime import datetime", "symbol": "datetime", "kind": "external", "classification": "external" }, { "test_file": "tests/test_json_handler/test_loads.py", "source_file": null, "import_root": "decimal", "definition_path": null, "required_import_path": "decimal.Decimal", "import_statement": "from decimal import Decimal", "symbol": "Decimal", "kind": "external", "classification": "external" }, { "test_file": "tests/test_json_handler/test_loads.py", "source_file": "phx_events/json_handler.py", "import_root": "phx_events", "definition_path": "phx_events.json_handler", "required_import_path": "phx_events.json_handler", "import_statement": "from phx_events import json_handler", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_json_handler/test_loads.py", "source_file": "phx_events/json_handler.py", "import_root": "phx_events", "definition_path": "phx_events.json_handler.loads", "required_import_path": "phx_events.json_handler.loads", "import_statement": "from phx_events import json_handler", "symbol": "loads", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_phx_messages/test_phx_event_message.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.PHXEvent", "required_import_path": "phx_events.phx_messages.PHXEvent", "import_statement": "from phx_events.phx_messages import PHXEvent, PHXEventMessage, Topic", "symbol": "PHXEvent", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_phx_messages/test_phx_event_message.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.PHXEventMessage", "required_import_path": "phx_events.phx_messages.PHXEventMessage", "import_statement": "from phx_events.phx_messages import PHXEvent, PHXEventMessage, Topic", "symbol": "PHXEventMessage", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_phx_messages/test_phx_event_message.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.Topic", "required_import_path": "phx_events.phx_messages.Topic", "import_statement": "from phx_events.phx_messages import PHXEvent, PHXEventMessage, Topic", "symbol": "Topic", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_phx_messages/test_phx_message.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.Event", "required_import_path": "phx_events.phx_messages.Event", "import_statement": "from phx_events.phx_messages import Event, PHXMessage, Topic", "symbol": "Event", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_phx_messages/test_phx_message.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.PHXMessage", "required_import_path": "phx_events.phx_messages.PHXMessage", "import_statement": "from phx_events.phx_messages import Event, PHXMessage, Topic", "symbol": "PHXMessage", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_phx_messages/test_phx_message.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.Topic", "required_import_path": "phx_events.phx_messages.Topic", "import_statement": "from phx_events.phx_messages import Event, PHXMessage, Topic", "symbol": "Topic", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_utils.py", "source_file": null, "import_root": "freezegun", "definition_path": null, "required_import_path": "freezegun.freeze_time", "import_statement": "from freezegun import freeze_time", "symbol": "freeze_time", "kind": "external", "classification": "external" }, { "test_file": "tests/test_utils.py", "source_file": null, "import_root": "hypothesis", "definition_path": null, "required_import_path": "hypothesis.given", "import_statement": "from hypothesis import given, strategies as st", "symbol": "given", "kind": "external", "classification": "external" }, { "test_file": "tests/test_utils.py", "source_file": null, "import_root": "hypothesis", "definition_path": null, "required_import_path": "hypothesis.strategies", "import_statement": "from hypothesis import given, strategies as st", "symbol": "strategies", "kind": "external", "classification": "external" }, { "test_file": "tests/test_utils.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.Event", "required_import_path": "phx_events.phx_messages.Event", "import_statement": "from phx_events.phx_messages import Event, PHXEvent, PHXEventMessage, PHXMessage", "symbol": "Event", "kind": "constant", "classification": "local-resolved" }, { "test_file": "tests/test_utils.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.PHXEvent", "required_import_path": "phx_events.phx_messages.PHXEvent", "import_statement": "from phx_events.phx_messages import Event, PHXEvent, PHXEventMessage, PHXMessage", "symbol": "PHXEvent", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_utils.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.PHXEventMessage", "required_import_path": "phx_events.phx_messages.PHXEventMessage", "import_statement": "from phx_events.phx_messages import Event, PHXEvent, PHXEventMessage, PHXMessage", "symbol": "PHXEventMessage", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_utils.py", "source_file": "phx_events/phx_messages.py", "import_root": "phx_events", "definition_path": "phx_events.phx_messages.PHXMessage", "required_import_path": "phx_events.phx_messages.PHXMessage", "import_statement": "from phx_events.phx_messages import Event, PHXEvent, PHXEventMessage, PHXMessage", "symbol": "PHXMessage", "kind": "class", "classification": "local-resolved" }, { "test_file": "tests/test_utils.py", "source_file": "phx_events/utils.py", "import_root": "phx_events", "definition_path": "phx_events.utils", "required_import_path": "phx_events.utils", "import_statement": "from phx_events import utils", "symbol": null, "kind": "module", "classification": "local-module" }, { "test_file": "tests/test_utils.py", "source_file": "phx_events/utils.py", "import_root": "phx_events", "definition_path": "phx_events.utils.generate_reference", "required_import_path": "phx_events.utils.generate_reference", "import_statement": "from phx_events import utils", "symbol": "generate_reference", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_utils.py", "source_file": "phx_events/utils.py", "import_root": "phx_events", "definition_path": "phx_events.utils.make_message", "required_import_path": "phx_events.utils.make_message", "import_statement": "from phx_events import utils", "symbol": "make_message", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_utils.py", "source_file": "phx_events/utils.py", "import_root": "phx_events", "definition_path": "phx_events.utils.parse_event", "required_import_path": "phx_events.utils.parse_event", "import_statement": "from phx_events import utils", "symbol": "parse_event", "kind": "function", "classification": "local-resolved" }, { "test_file": "tests/test_utils.py", "source_file": "tests/strategy_utils.py", "import_root": "tests", "definition_path": "tests.strategy_utils.PHX_EVENTS", "required_import_path": "tests.strategy_utils.PHX_EVENTS", "import_statement": "from tests.strategy_utils import channel_event_strategy, event_strategy, phx_event_strategy, PHX_EVENTS", "symbol": "PHX_EVENTS", "kind": "test-support", "classification": "test-support" }, { "test_file": "tests/test_utils.py", "source_file": "tests/strategy_utils.py", "import_root": "tests", "definition_path": "tests.strategy_utils.channel_event_strategy", "required_import_path": "tests.strategy_utils.channel_event_strategy", "import_statement": "from tests.strategy_utils import channel_event_strategy, event_strategy, phx_event_strategy, PHX_EVENTS", "symbol": "channel_event_strategy", "kind": "test-support", "classification": "test-support" }, { "test_file": "tests/test_utils.py", "source_file": "tests/strategy_utils.py", "import_root": "tests", "definition_path": "tests.strategy_utils.event_strategy", "required_import_path": "tests.strategy_utils.event_strategy", "import_statement": "from tests.strategy_utils import channel_event_strategy, event_strategy, phx_event_strategy, PHX_EVENTS", "symbol": "event_strategy", "kind": "test-support", "classification": "test-support" }, { "test_file": "tests/test_utils.py", "source_file": "tests/strategy_utils.py", "import_root": "tests", "definition_path": "tests.strategy_utils.phx_event_strategy", "required_import_path": "tests.strategy_utils.phx_event_strategy", "import_statement": "from tests.strategy_utils import channel_event_strategy, event_strategy, phx_event_strategy, PHX_EVENTS", "symbol": "phx_event_strategy", "kind": "test-support", "classification": "test-support" }, { "test_file": "tests/utils.py", "source_file": null, "import_root": "typing", "definition_path": null, "required_import_path": "typing.AsyncIterator", "import_statement": "from typing import TypeVar, AsyncIterator", "symbol": "AsyncIterator", "kind": "external", "classification": "external" }, { "test_file": "tests/utils.py", "source_file": null, "import_root": "typing", "definition_path": null, "required_import_path": "typing.TypeVar", "import_statement": "from typing import TypeVar, AsyncIterator", "symbol": "TypeVar", "kind": "external", "classification": "external" } ], "test_import_contract_digest": "b94fff4f1e5a1852fca78526159f87ec03b740e34d073546936d3fdf40371085" }
{
"passed_ptp": [
"tests/test_client/test_context_manager.py::TestPHXChannelsClientAEnter::test_returns_self_when_using_as_with_context_manager",
"tests/test_client/test_context_manager.py::TestPHXChannelsClientAExit::test_calls_shutdown_with_correct_reason",
"tests/test_client/test_event_processor.py::TestPHXChannelsClientEventProcessor::test_waits_on_client_start_event",
"tests/test_client/test_event_processor.py::TestPHXChannelsClientEventProcessor::test_only_event_handlers_used_for_event_no_topic",
"tests/test_client/test_event_processor.py::TestPHXChannelsClientEventProcessor::test_all_event_handlers_used_for_event_with_topic",
"tests/test_client/test_event_processor.py::TestPHXChannelsClientEventProcessor::test_event_handler_errors_intercepted_and_logged",
"tests/test_client/test_init.py::TestPHXChannelsClientInit::test_async_logger_child_set_as_logger_on_client",
"tests/test_client/test_init.py::TestPHXChannelsClientInit::test_channel_socket_url_has_token_if_specified",
"tests/test_client/test_init.py::TestPHXChannelsClientInit::test_channel_socket_url_token_is_made_url_safe",
"tests/test_client/test_init.py::TestPHXChannelsClientInit::test_event_loop_set_by_default_if_not_specified",
"tests/test_client/test_init.py::TestPHXChannelsClientInit::test_event_loop_set_to_argument_if_specified",
"tests/test_client/test_parse_message.py::TestPHXChannelsClientParseMessage::test_returns_phx_message_for_event_socket_message",
"tests/test_client/test_parse_message.py::TestPHXChannelsClientParseMessage::test_returns_phx_event_message_for_event_socket_message",
"tests/test_client/test_process_topic_registration_responses.py::TestPHXChannelsClientProcessTopicRegistrationResponses::test_updates_registration_status_for_success",
"tests/test_client/test_process_topic_registration_responses.py::TestPHXChannelsClientProcessTopicRegistrationResponses::test_updates_registration_status_for_failed",
"tests/test_client/test_process_websocket_messages.py::TestPHXChannelsClientProcessWebsocketMessages::test_raises_exception_on_phx_close_event",
"tests/test_client/test_process_websocket_messages.py::TestPHXChannelsClientProcessWebsocketMessages::test_raises_exception_on_phx_error_event",
"tests/test_client/test_process_websocket_messages.py::TestPHXChannelsClientProcessWebsocketMessages::test_puts_message_in_topic_registration_queue_if_appropriate",
"tests/test_client/test_process_websocket_messages.py::TestPHXChannelsClientProcessWebsocketMessages::test_does_not_put_message_in_topic_registration_queue_if_not_phx_reply",
"tests/test_client/test_process_websocket_messages.py::TestPHXChannelsClientProcessWebsocketMessages::test_does_not_put_message_in_topic_registration_queue_if_registration_event_set",
"tests/test_client/test_process_websocket_messages.py::TestPHXChannelsClientProcessWebsocketMessages::test_event_ignored_if_no_event_handler_registered",
"tests/test_client/test_process_websocket_messages.py::TestPHXChannelsClientProcessWebsocketMessages::test_put_message_in_event_handler_queue_handlers_exist",
"tests/test_client/test_register_event_handler.py::TestPHXChannelsClientRegisterEventHandler::test_event_added_to_event_handler_config",
"tests/test_client/test_register_event_handler.py::TestPHXChannelsClientRegisterEventHandler::test_handlers_add_to_topic_handlers_if_topic_is_passed_in",
"tests/test_client/test_register_event_handler.py::TestPHXChannelsClientRegisterEventHandler::test_events_with_the_same_name_are_grouped",
"tests/test_client/test_register_topic_subscription.py::TestPHXChannelsClientRegisterTopicSubscription::test_topic_registered_returns_event",
"tests/test_client/test_register_topic_subscription.py::TestPHXChannelsClientRegisterTopicSubscription::test_registering_the_same_topic_multiple_times_raises_exception",
"tests/test_client/test_send_message.py::TestPHXChannelsClientSendMessage::test_correct_message_passed_to_websocket_send",
"tests/test_client/test_shutdown.py::TestPHXChannelsClientShutdown::test_if_websocket_is_not_none_close_task_queued",
"tests/test_client/test_shutdown.py::TestPHXChannelsClientShutdown::test_if_topic_registration_task_is_not_none_cancel_task",
"tests/test_client/test_shutdown.py::TestPHXChannelsClientShutdown::test_any_event_handlers_registered_tasks_are_cancelled",
"tests/test_client/test_shutdown.py::TestPHXChannelsClientShutdown::test_if_executor_pool_is_not_none_call_shutdown",
"tests/test_client/test_shutdown.py::TestPHXChannelsClientShutdown::test_if_executor_pool_is_not_none_call_shutdown_with_no_wait",
"tests/test_client/test_start_processing.py::TestPHXChannelsClientStartProcessing::test_does_nothing_if_no_topics_registered",
"tests/test_client/test_start_processing.py::TestPHXChannelsClientStartProcessing::test_threadpool_executor_used_if_no_executor_pool_specified",
"tests/test_client/test_start_processing.py::TestPHXChannelsClientStartProcessing::test_websocket_client_called_with_url",
"tests/test_client/test_start_processing.py::TestPHXChannelsClientStartProcessing::test_signal_handlers_functions_created_and_registered_correctly",
"tests/test_client/test_start_processing.py::TestPHXChannelsClientStartProcessing::test_subscribe_to_registered_topics_called_with_websocket",
"tests/test_client/test_start_processing.py::TestPHXChannelsClientStartProcessing::test_process_websocket_messages_called_with_websocket",
"tests/test_client/test_subscribe_to_registered_topics.py::TestPHXChannelsClientSubscribeToRegisteredTopics::test_process_topic_registration_responses_task_started",
"tests/test_client/test_subscribe_to_registered_topics.py::TestPHXChannelsClientSubscribeToRegisteredTopics::test_all_topics_in_topic_registration_status_dict_have_messages_sent",
"tests/test_json_handler/test_decimal_serialiser.py::test_raises_type_error_if_not_a_decimal",
"tests/test_json_handler/test_decimal_serialiser.py::test_returns_serialised_decimals",
"tests/test_json_handler/test_deep_float_replace.py::test_returns_decimal_if_obj_is_float",
"tests/test_json_handler/test_deep_float_replace.py::test_returns_obj_if_not_float",
"tests/test_json_handler/test_deep_float_replace.py::test_converts_elements_of_a_list",
"tests/test_json_handler/test_deep_float_replace.py::test_converts_elements_of_a_dict",
"tests/test_json_handler/test_deep_float_replace.py::test_converts_floats_in_complex_object",
"tests/test_json_handler/test_dumps.py::test_dumps_returns_json_string_and_handles_decimals",
"tests/test_json_handler/test_loads.py::test_loads_returns_dictionary_and_handles_decimals_when_floats_to_decimal_true",
"tests/test_json_handler/test_loads.py::test_loads_returns_dictionary_and_leaves_floats_as_floats_when_floats_to_decimal_false",
"tests/test_phx_messages/test_phx_event_message.py::TestSubtopic::test_returns_subtopic_if_it_exists",
"tests/test_phx_messages/test_phx_event_message.py::TestSubtopic::test_returns_none_if_it_does_not_exist",
"tests/test_phx_messages/test_phx_message.py::TestSubtopic::test_returns_subtopic_if_it_exists",
"tests/test_phx_messages/test_phx_message.py::TestSubtopic::test_returns_none_if_it_does_not_exist",
"tests/test_utils.py::TestParseEvent::test_returns_event_enum_for_valid_phx_events",
"tests/test_utils.py::TestParseEvent::test_returns_string_for_anything_that_is_not_a_phx_event",
"tests/test_utils.py::TestMakeMessage::test_phx_event_message_returned_for_phx_event",
"tests/test_utils.py::TestMakeMessage::test_phx_message_returned_for_other_events",
"tests/test_utils.py::TestMakeMessage::test_none_payload_turned_into_empty_dict",
"tests/test_utils.py::TestGenerateReference::test_returns_correctly_for_event"
],
"test_files": [
"tests/__init__.py",
"tests/conftest.py",
"tests/strategy_utils.py",
"tests/test_client/__init__.py",
"tests/test_client/test_context_manager.py",
"tests/test_client/test_event_processor.py",
"tests/test_client/test_init.py",
"tests/test_client/test_parse_message.py",
"tests/test_client/test_process_topic_registration_responses.py",
"tests/test_client/test_process_websocket_messages.py",
"tests/test_client/test_register_event_handler.py",
"tests/test_client/test_register_topic_subscription.py",
"tests/test_client/test_send_message.py",
"tests/test_client/test_shutdown.py",
"tests/test_client/test_start_processing.py",
"tests/test_client/test_subscribe_to_registered_topics.py",
"tests/test_json_handler/__init__.py",
"tests/test_json_handler/test_decimal_serialiser.py",
"tests/test_json_handler/test_deep_float_replace.py",
"tests/test_json_handler/test_dumps.py",
"tests/test_json_handler/test_loads.py",
"tests/test_phx_messages/__init__.py",
"tests/test_phx_messages/test_phx_event_message.py",
"tests/test_phx_messages/test_phx_message.py",
"tests/test_utils.py",
"tests/utils.py"
],
"test_command": [
"bash",
"-lc",
"set -uo pipefail\nrun=(python3 -m pytest -vv --continue-on-collection-errors -o 'addopts=-p no:hypothesispytest' tests/test_client/test_context_manager.py tests/test_client/test_event_processor.py tests/test_client/test_init.py tests/test_client/test_parse_message.py tests/test_client/test_process_topic_registration_responses.py tests/test_client/test_process_websocket_messages.py tests/test_client/test_register_event_handler.py tests/test_client/test_register_topic_subscription.py tests/test_client/test_send_message.py tests/test_client/test_shutdown.py tests/test_client/test_start_processing.py tests/test_client/test_subscribe_to_registered_topics.py tests/test_json_handler/test_decimal_serialiser.py tests/test_json_handler/test_deep_float_replace.py tests/test_json_handler/test_dumps.py tests/test_json_handler/test_loads.py tests/test_phx_messages/test_phx_event_message.py tests/test_phx_messages/test_phx_message.py tests/test_utils.py)\nif [ -n \"${COVERAGE_FILE:-}\" ]; then run=(python3 -m coverage run --source=. -m pytest -vv --continue-on-collection-errors -o 'addopts=-p no:hypothesispytest' tests/test_client/test_context_manager.py tests/test_client/test_event_processor.py tests/test_client/test_init.py tests/test_client/test_parse_message.py tests/test_client/test_process_topic_registration_responses.py tests/test_client/test_process_websocket_messages.py tests/test_client/test_register_event_handler.py tests/test_client/test_register_topic_subscription.py tests/test_client/test_send_message.py tests/test_client/test_shutdown.py tests/test_client/test_start_processing.py tests/test_client/test_subscribe_to_registered_topics.py tests/test_json_handler/test_decimal_serialiser.py tests/test_json_handler/test_deep_float_replace.py tests/test_json_handler/test_dumps.py tests/test_json_handler/test_loads.py tests/test_phx_messages/test_phx_event_message.py tests/test_phx_messages/test_phx_message.py tests/test_utils.py); fi\ncollect=(python3 -m pytest -q -o 'addopts=-p no:hypothesispytest' tests/test_client/test_context_manager.py tests/test_client/test_event_processor.py tests/test_client/test_init.py tests/test_client/test_parse_message.py tests/test_client/test_process_topic_registration_responses.py tests/test_client/test_process_websocket_messages.py tests/test_client/test_register_event_handler.py tests/test_client/test_register_topic_subscription.py tests/test_client/test_send_message.py tests/test_client/test_shutdown.py tests/test_client/test_start_processing.py tests/test_client/test_subscribe_to_registered_topics.py tests/test_json_handler/test_decimal_serialiser.py tests/test_json_handler/test_deep_float_replace.py tests/test_json_handler/test_dumps.py tests/test_json_handler/test_loads.py tests/test_phx_messages/test_phx_event_message.py tests/test_phx_messages/test_phx_message.py tests/test_utils.py)\ncollected_output=$(\"${collect[@]}\" --collect-only)\ncollect_rc=$?\nif [ \"$collect_rc\" -ne 0 ] && [ \"$collect_rc\" -ne 5 ]; then\n printf \"%s\\n\" \"$collected_output\" >&2\n printf \"[programgen] test collection failed with exit code %s\\n\" \"$collect_rc\" >&2\n exit \"$collect_rc\"\nfi\nmapfile -t collected < <(printf \"%s\\n\" \"$collected_output\" | sed -n '/::/p' | sed 's/[[:space:]]*$//')\nif [ \"${#collected[@]}\" -gt 500 ]; then\n while IFS= read -r id; do run+=(\"--deselect=$id\"); done < <(printf \"%s\\n\" \"${collected[@]}\" | awk -F'::' -v limit=500 '{f=$1; n[f]++; idx[f,n[f]]=NR; all[NR]=$0; if(!(f in seen)){seen[f]=1; order[++m]=f}} END{d=1; c=0; while(c<limit){a=0; for(i=1;i<=m;i++){f=order[i]; if(d<=n[f]){keep[idx[f,d]]=1; c++; a=1; if(c>=limit) break}} if(!a) break; d++} for(r=1;r<=NR;r++) if(!(r in keep)) print all[r]}')\nfi\n\"${run[@]}\"; exit $?"
],
"test_payload_contract": {
"schema_version": "programgen.test-payload-contract.v1",
"test_files": [