()
| 245 | |
| 246 | |
| 247 | def 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 | |
| 262 | def test_raphtory_client_write_denied_for_read_jwt(): |
nothing calls this directly
no test coverage detected