()
| 339 | |
| 340 | |
| 341 | def test_upload_graph(): |
| 342 | work_dir = tempfile.mkdtemp() |
| 343 | with GraphServer( |
| 344 | work_dir, config={"auth": {"public_key": PUB_KEY}} |
| 345 | ).start() as server: |
| 346 | port = server.port() |
| 347 | client = RaphtoryClient(url=raphtory_url(port), token=WRITE_JWT) |
| 348 | g = Graph() |
| 349 | g.add_node(0, "uploaded-node") |
| 350 | tmp_dir = tempfile.mkdtemp() |
| 351 | path = tmp_dir + "/graph" |
| 352 | g.save_to_zip(path) |
| 353 | client.upload_graph(path="uploaded", file_path=path) |
| 354 | g = client.receive_graph("uploaded") |
| 355 | assert g.node("uploaded-node") is not None |
nothing calls this directly
no test coverage detected