MCPcopy Create free account
hub / github.com/Pometry/Raphtory / test_raphtory_client

Function test_raphtory_client

python/tests/test_auth.py:247–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

245
246
247def test_raphtory_client():
248 work_dir = tempfile.mkdtemp()
249 with GraphServer(
250 work_dir, config={"auth": {"public_key": PUB_KEY}}
251 ).start() as server:
252 port = server.port()
253 client = RaphtoryClient(url=raphtory_url(port), token=WRITE_JWT)
254 client.new_graph("test", "EVENT")
255 g = client.remote_graph("test")
256 g.add_node(0, "test")
257 node = g.node("test")
258 g = client.receive_graph("test")
259 assert g.node("test") is not None
260
261
262def test_raphtory_client_write_denied_for_read_jwt():

Callers

nothing calls this directly

Calls 9

GraphServerClass · 0.90
raphtory_urlFunction · 0.85
startMethod · 0.45
portMethod · 0.45
new_graphMethod · 0.45
remote_graphMethod · 0.45
add_nodeMethod · 0.45
nodeMethod · 0.45
receive_graphMethod · 0.45

Tested by

no test coverage detected