vortexpy 6.2.1__tar.gz → 6.2.2__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.2}/PKG-INFO +1 -1
- {vortexpy-6.2.1 → vortexpy-6.2.2}/pyproject.toml +1 -1
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexFactory.py +5 -2
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexFactory_test.py +72 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/__init__.py +1 -1
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortexpy.egg-info/PKG-INFO +1 -1
- {vortexpy-6.2.1 → vortexpy-6.2.2}/LICENSE +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/README.md +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/example/TwistedDeferredTimeout.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/example/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/example/run_http_upgraded_websocket_ping_client.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/example/run_http_upgraded_websocket_ping_server.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/example/run_http_upgraded_websocket_rpc_test_client.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/example/run_http_upgraded_websocket_rpc_test_server.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/example/run_websocket_rpc_test_client.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/example/run_websocket_rpc_test_server.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/example/setup_example_logging.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/example/store_and_load_json.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/setup.cfg +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/DataWrapTuple.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/DeferUtil.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/DeferUtil_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/Jsonable.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/MtlsAuthorizedClientRegistry.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/MtlsAuthorizedClientRegistry_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/MtlsServerSslOptions.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/Payload.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/PayloadEndpoint.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/PayloadEndpointTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/PayloadEnvelope.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/PayloadFilterKeys.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/PayloadIO.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/PayloadPriority.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/PayloadResponse.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/PayloadResponseTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/PayloadResponse_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/PayloadTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/PerformTestActionTuple.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/SerialiseUtil.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/SerialiseUtil_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/TestTuple.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/Tuple.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/TupleAction.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/TupleBson.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/TupleBson_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/TupleDataForTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/TupleDocumentConverter.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/TuplePerfTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/TuplePolymorphicTupleTypeFieldArgTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/TupleRestful.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/TupleRestful_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/TupleSelector.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/TupleTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexAccessControlContextABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexAuthenticatorABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexClientHttp.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexClientHttpTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexClientTcp.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexClientWebsocketFactory.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexConnectionABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexEndpointPermission.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexPayloadProtocol.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexPermission.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexPermissionError.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexServer.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexServerConnection.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexServerConnection_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexServerHttpResource.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexServerTcp.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexServerTcp_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexServerWebsocket.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexServerWebsocket_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexServer_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexSession.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexSession_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexTcpMemoryLeakPayloadTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexTcpMemoryLeakRawTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexUserDetailsABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexUtil.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexWritePushProducer.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/VortexWritePushProducer_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/data_loader/TupleDataLiveLockManager.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/data_loader/TupleDataLiveLockManager_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/data_loader/TupleDataLoader.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/data_loader/TupleDataLoaderDelegate.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/data_loader/TupleDataLoaderTupleABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/data_loader/TupleDataLoaderTuples.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/data_loader/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/event_bus/TupleChangeEventABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/event_bus/TupleChangeEventBus.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/event_bus/TupleChangeEventBusObserverABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/event_bus/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleActionProcessor.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleActionProcessorProxy.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleActionProcessorTestHandler.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleActionProcessor_shutdown_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleActionProcessor_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleActionPushOffline.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleActionPushOffline_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleDataAccessGranterABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleDataActionClient.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleDataActionClient_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleDataObservableCache.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleDataObservableCache_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleDataObservableHandler.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleDataObservableHandler_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleDataObservableProxyHandler.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleDataObservableProxyHandler_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleDataObservableTestHandler.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleDataObserverClient.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleDataOfflineObserverService.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleDataOfflineObserverService_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/TupleDataProviderABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/VortexJSTupleLoaderTestHandler.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/handler/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/mypy_plugin.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/payload_many_tuples_benchmark_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/py.typed +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/restful/GzippedDataHttpClient.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/restful/GzippedDataHttpClientTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/restful/GzippedPayloadHttpClient.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/restful/RestfulHttpClient.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/restful/RestfulResource.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/restful/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/restful/restful_http_client_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/restful/restful_resource_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/rpc/RPC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/rpc/RPCTest.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/rpc/RPC_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/rpc/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/sqla_orm/OrmCrudHandler.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/sqla_orm/TupleProviderForDb.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/sqla_orm/VortexTupleJson.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/sqla_orm/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/storage/TupleActionStorageSqlite.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/storage/TupleOfflineStorageNameService.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/storage/TupleOfflineStorageSecureService.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/storage/TupleOfflineStorageSecureService_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/storage/TupleOfflineStorageService.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/storage/TupleStorageServiceABC.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/storage/TupleStorageSqlite.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/storage/TupleStorageSqliteService.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/storage/TupleStorageSqliteService_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/storage/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/tuple_json_schema/__init__.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/tuple_json_schema/constants.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/tuple_json_schema/json_schema_node_tuple.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/tuple_json_schema/tuple_json_schema_builder.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/tuple_json_schema/tuple_json_schema_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/tuple_json_schema/tuple_json_schema_test_tuples.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/tuple_test_fixtures.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/twisted_runtime_metrics.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortex/twisted_runtime_metrics_test.py +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortexpy.egg-info/SOURCES.txt +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortexpy.egg-info/dependency_links.txt +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortexpy.egg-info/entry_points.txt +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/vortexpy.egg-info/requires.txt +0 -0
- {vortexpy-6.2.1 → vortexpy-6.2.2}/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.2"
|
|
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."
|
|
@@ -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()
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|