From fd9e7510be6ada299061ba90dc336beb357b4e05 Mon Sep 17 00:00:00 2001 From: Nicholas Landry Date: Mon, 6 May 2024 13:10:54 -0400 Subject: [PATCH] fixed failing tests --- tests/readwrite/test_json.py | 2 +- xgi/readwrite/json.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/readwrite/test_json.py b/tests/readwrite/test_json.py index 2bc9208c..a4d96100 100644 --- a/tests/readwrite/test_json.py +++ b/tests/readwrite/test_json.py @@ -262,4 +262,4 @@ def test_write_json(edgelist1): # duplicate edge IDs when casting to a string badH.add_edges_from({"2": [1, 2, 3], 2: [4, 5, 6]}) with pytest.raises(XGIError): - xgi.write_json(badH) + xgi.write_json(badH, "test.json") diff --git a/xgi/readwrite/json.py b/xgi/readwrite/json.py index db7fe5db..481eb46b 100644 --- a/xgi/readwrite/json.py +++ b/xgi/readwrite/json.py @@ -18,7 +18,7 @@ def write_json(H, path): The specified hypergraph object path: string The path of the file to read from - + Raises ------ XGIError