Orchestrata Ultimate › Tests › Reference › test_gateway
Tests reference — tests/test_gateway.py
Module of tests, split out because the directory page would be too large.
Prose pending.
tests/test_gateway.py
source · 26 tests · 233 lines
Tests for orchestrata_ultimate.gateway module.
Covers: gateway.config, gateway.exceptions, gateway.models, gateway.pubsub, gateway.ring_buffer
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_gateway_config_defaults |
34 | |
| function | test_gateway_config_is_frozen |
41 | |
| function | test_wsmessage_creation_defaults |
52 | |
| function | test_wsmessage_to_dict_roundtrip |
59 | |
| function | test_wsmessage_from_dict |
71 | |
| function | test_wsmessage_from_dict_invalid_type_raises |
84 | |
| function | test_message_type_values |
89 | |
| function | test_gateway_error_hierarchy |
100 | |
| function | test_authentication_error_is_gateway_error |
105 | |
| function | test_rpc_error_default_code |
110 | |
| function | test_rpc_error_custom_code |
115 | |
| function | test_ring_buffer_error_is_gateway_error |
120 | |
| function | test_pubsub_error_is_gateway_error |
125 | |
| function | test_connection_lifecycle_error |
130 | |
| function | test_serialize_for_redis_basic_types |
140 | |
| function | test_serialize_for_redis_dict_value_becomes_json |
148 | |
| function | test_serialize_for_redis_list_becomes_json |
155 | |
| function | test_serialize_for_redis_none_becomes_empty_string |
162 | |
| function | test_serialize_for_redis_empty_dict |
168 | |
| function | test_pubsub_subscribe_returns_sub_id |
179 | |
| function | test_pubsub_subscribe_empty_connection_raises |
186 | |
| function | test_pubsub_subscribe_empty_topic_raises |
193 | |
| function | test_pubsub_unsubscribe_all_removes_subscriptions |
200 | |
| function | test_pubsub_get_matching_connections_wildcard |
211 | |
| function | test_pubsub_get_matching_connections_no_match |
219 | |
| function | test_pubsub_get_subscriptions_for_connection |
227 |