vortexpy 6.2.1__tar.gz → 6.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vortexpy-6.2.1 → vortexpy-6.2.3}/PKG-INFO +1 -1
- {vortexpy-6.2.1 → vortexpy-6.2.3}/pyproject.toml +1 -1
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/TupleDocumentConverter.py +6 -2
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexFactory.py +5 -2
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexFactory_test.py +72 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/__init__.py +1 -1
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortexpy.egg-info/PKG-INFO +1 -1
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortexpy.egg-info/SOURCES.txt +0 -1
- vortexpy-6.2.1/LICENSE +0 -22
- {vortexpy-6.2.1 → vortexpy-6.2.3}/README.md +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/example/TwistedDeferredTimeout.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/example/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/example/run_http_upgraded_websocket_ping_client.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/example/run_http_upgraded_websocket_ping_server.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/example/run_http_upgraded_websocket_rpc_test_client.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/example/run_http_upgraded_websocket_rpc_test_server.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/example/run_websocket_rpc_test_client.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/example/run_websocket_rpc_test_server.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/example/setup_example_logging.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/example/store_and_load_json.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/setup.cfg +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/DataWrapTuple.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/DeferUtil.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/DeferUtil_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/Jsonable.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/MtlsAuthorizedClientRegistry.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/MtlsAuthorizedClientRegistry_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/MtlsServerSslOptions.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/Payload.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/PayloadEndpoint.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/PayloadEndpointTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/PayloadEnvelope.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/PayloadFilterKeys.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/PayloadIO.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/PayloadPriority.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/PayloadResponse.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/PayloadResponseTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/PayloadResponse_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/PayloadTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/PerformTestActionTuple.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/SerialiseUtil.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/SerialiseUtil_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/TestTuple.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/Tuple.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/TupleAction.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/TupleBson.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/TupleBson_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/TupleDataForTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/TuplePerfTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/TuplePolymorphicTupleTypeFieldArgTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/TupleRestful.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/TupleRestful_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/TupleSelector.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/TupleTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexAccessControlContextABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexAuthenticatorABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexClientHttp.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexClientHttpTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexClientTcp.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexClientWebsocketFactory.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexConnectionABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexEndpointPermission.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexPayloadProtocol.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexPermission.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexPermissionError.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexServer.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexServerConnection.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexServerConnection_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexServerHttpResource.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexServerTcp.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexServerTcp_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexServerWebsocket.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexServerWebsocket_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexServer_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexSession.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexSession_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexTcpMemoryLeakPayloadTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexTcpMemoryLeakRawTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexUserDetailsABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexUtil.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexWritePushProducer.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/VortexWritePushProducer_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/data_loader/TupleDataLiveLockManager.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/data_loader/TupleDataLiveLockManager_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/data_loader/TupleDataLoader.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/data_loader/TupleDataLoaderDelegate.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/data_loader/TupleDataLoaderTupleABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/data_loader/TupleDataLoaderTuples.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/data_loader/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/event_bus/TupleChangeEventABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/event_bus/TupleChangeEventBus.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/event_bus/TupleChangeEventBusObserverABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/event_bus/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleActionProcessor.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleActionProcessorProxy.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleActionProcessorTestHandler.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleActionProcessor_shutdown_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleActionProcessor_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleActionPushOffline.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleActionPushOffline_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleDataAccessGranterABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleDataActionClient.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleDataActionClient_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleDataObservableCache.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleDataObservableCache_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleDataObservableHandler.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleDataObservableHandler_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleDataObservableProxyHandler.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleDataObservableProxyHandler_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleDataObservableTestHandler.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleDataObserverClient.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleDataOfflineObserverService.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleDataOfflineObserverService_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/TupleDataProviderABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/VortexJSTupleLoaderTestHandler.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/handler/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/mypy_plugin.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/payload_many_tuples_benchmark_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/py.typed +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/restful/GzippedDataHttpClient.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/restful/GzippedDataHttpClientTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/restful/GzippedPayloadHttpClient.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/restful/RestfulHttpClient.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/restful/RestfulResource.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/restful/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/restful/restful_http_client_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/restful/restful_resource_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/rpc/RPC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/rpc/RPCTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/rpc/RPC_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/rpc/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/sqla_orm/OrmCrudHandler.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/sqla_orm/TupleProviderForDb.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/sqla_orm/VortexTupleJson.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/sqla_orm/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/storage/TupleActionStorageSqlite.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/storage/TupleOfflineStorageNameService.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/storage/TupleOfflineStorageSecureService.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/storage/TupleOfflineStorageSecureService_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/storage/TupleOfflineStorageService.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/storage/TupleStorageServiceABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/storage/TupleStorageSqlite.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/storage/TupleStorageSqliteService.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/storage/TupleStorageSqliteService_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/storage/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/tuple_json_schema/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/tuple_json_schema/constants.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/tuple_json_schema/json_schema_node_tuple.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/tuple_json_schema/tuple_json_schema_builder.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/tuple_json_schema/tuple_json_schema_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/tuple_json_schema/tuple_json_schema_test_tuples.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/tuple_test_fixtures.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/twisted_runtime_metrics.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortex/twisted_runtime_metrics_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortexpy.egg-info/dependency_links.txt +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortexpy.egg-info/entry_points.txt +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortexpy.egg-info/requires.txt +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.3}/vortexpy.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "vortexpy"
|
|
7
|
-
version = "6.2.
|
|
7
|
+
version = "6.2.3"
|
|
8
8
|
license = {text = "MIT"}
|
|
9
9
|
authors = [{name = "Flying Ion Pty Ltd", email = "contact@flyingion.com"}]
|
|
10
10
|
description = "Flying Ion's observable, routable, data serialisation and transport code."
|
|
@@ -421,8 +421,12 @@ class TupleDocumentConverterBase:
|
|
|
421
421
|
return cls._makeError(field_path, str(exc), ValueError)
|
|
422
422
|
return None
|
|
423
423
|
|
|
424
|
-
if isinstance(value, list)
|
|
425
|
-
|
|
424
|
+
if isinstance(value, list):
|
|
425
|
+
if get_origin(typeHint) is list:
|
|
426
|
+
return None
|
|
427
|
+
for unionArg in get_args(typeHint):
|
|
428
|
+
if get_origin(unionArg) is list:
|
|
429
|
+
return None
|
|
426
430
|
|
|
427
431
|
if isinstance(value, dict):
|
|
428
432
|
if get_origin(typeHint) is dict:
|
|
@@ -995,7 +995,10 @@ class VortexFactory:
|
|
|
995
995
|
"Vortex %s went %s", vortexName, ("online" if online else "offline")
|
|
996
996
|
)
|
|
997
997
|
|
|
998
|
+
# Rebuild the connection structs before notifying: handlers react to
|
|
999
|
+
# the status change synchronously (e.g. the offline observer re-tell)
|
|
1000
|
+
# and read getRemoteVortexName() from these structs.
|
|
1001
|
+
cls.connectionChanged()
|
|
1002
|
+
|
|
998
1003
|
if vortexName in cls.__vortexStatusChangeSubjectsByName:
|
|
999
1004
|
cls.__vortexStatusChangeSubjectsByName[vortexName].on_next(online)
|
|
1000
|
-
|
|
1001
|
-
cls.connectionChanged()
|
|
@@ -112,3 +112,75 @@ def test_closeExistingVortexClientsForName_closesRegisteredClients() -> None:
|
|
|
112
112
|
assert (
|
|
113
113
|
VortexFactory.getLocalVortexClients("codie-mcp-local") == []
|
|
114
114
|
)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
def _resetVortexFactoryClassState() -> None:
|
|
118
|
+
VortexFactory._VortexFactory__vortexInfoState = _VortexFactoryVortexInfo()
|
|
119
|
+
VortexFactory._VortexFactory__vortexStatusChangeSubjectsByName = {}
|
|
120
|
+
VortexFactory._VortexFactory__isShutdown = False
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
def test_notifyOfVortexStatusChange_rebuildsStructsBeforeNotify() -> None:
|
|
124
|
+
_resetVortexFactoryClassState()
|
|
125
|
+
try:
|
|
126
|
+
client = _StubVortexClient("codie-mcp-local", "local-uuid-1")
|
|
127
|
+
VortexFactory._VortexFactory__vortexInfoState.addVortexClient(
|
|
128
|
+
"codie-mcp-local", client
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
# Mirror the handshake: _setNameAndUuid sets the remote info on the
|
|
132
|
+
# client before _notifyOfVortexStatusChange runs.
|
|
133
|
+
client._remote_name = "codie-hub"
|
|
134
|
+
client._remote_uuid = "hub-uuid-1"
|
|
135
|
+
|
|
136
|
+
notifications = []
|
|
137
|
+
VortexFactory.subscribeToVortexStatusChange("codie-hub").subscribe(
|
|
138
|
+
lambda online: notifications.append(
|
|
139
|
+
(online, VortexFactory.getRemoteVortexName())
|
|
140
|
+
)
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
VortexFactory._notifyOfVortexStatusChange("codie-hub", online=True)
|
|
144
|
+
|
|
145
|
+
assert len(notifications) == 1
|
|
146
|
+
online, remoteNames = notifications[0]
|
|
147
|
+
assert online is True
|
|
148
|
+
assert "codie-hub" in remoteNames
|
|
149
|
+
finally:
|
|
150
|
+
_resetVortexFactoryClassState()
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
def test_notifyOfVortexStatusChange_offlineAfterClearDropsName() -> None:
|
|
154
|
+
_resetVortexFactoryClassState()
|
|
155
|
+
try:
|
|
156
|
+
client = _StubVortexClient(
|
|
157
|
+
"codie-mcp-local",
|
|
158
|
+
"local-uuid-1",
|
|
159
|
+
remote_name="codie-hub",
|
|
160
|
+
remote_uuid="hub-uuid-1",
|
|
161
|
+
)
|
|
162
|
+
VortexFactory._VortexFactory__vortexInfoState.addVortexClient(
|
|
163
|
+
"codie-mcp-local", client
|
|
164
|
+
)
|
|
165
|
+
assert "codie-hub" in VortexFactory.getRemoteVortexName()
|
|
166
|
+
|
|
167
|
+
# Mirror connectionLost: _clearRemoteVortexInfo clears the remote
|
|
168
|
+
# info on the client before _notifyOfVortexStatusChange runs.
|
|
169
|
+
client._remote_name = None
|
|
170
|
+
client._remote_uuid = None
|
|
171
|
+
|
|
172
|
+
notifications = []
|
|
173
|
+
VortexFactory.subscribeToVortexStatusChange("codie-hub").subscribe(
|
|
174
|
+
lambda online: notifications.append(
|
|
175
|
+
(online, VortexFactory.getRemoteVortexName())
|
|
176
|
+
)
|
|
177
|
+
)
|
|
178
|
+
|
|
179
|
+
VortexFactory._notifyOfVortexStatusChange("codie-hub", online=False)
|
|
180
|
+
|
|
181
|
+
assert len(notifications) == 1
|
|
182
|
+
online, remoteNames = notifications[0]
|
|
183
|
+
assert online is False
|
|
184
|
+
assert "codie-hub" not in remoteNames
|
|
185
|
+
finally:
|
|
186
|
+
_resetVortexFactoryClassState()
|
vortexpy-6.2.1/LICENSE
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2016-2026 Flying Ion Pty Ltd
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
22
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|