diff --git a/tests/conftest.py b/tests/conftest.py index 80fa22bc..27125d49 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -140,13 +140,16 @@ def bipartite_dihypergraph1(): G = nx.DiGraph() G.add_nodes_from([1, 2, 3, 4], bipartite=0) G.add_nodes_from(["a", "b", "c"], bipartite=1) - G.add_edges_from([ - ("a", 1), - ("b", 1, {"direction": "tail"}), - ("b", 2), - ("c", 2, {"direction": "tail"}), - ("c", 3), - ("a", 4, {"direction": "tail"})]) + G.add_edges_from( + [ + ("a", 1), + ("b", 1, {"direction": "tail"}), + ("b", 2), + ("c", 2, {"direction": "tail"}), + ("c", 3), + ("a", 4, {"direction": "tail"}), + ] + ) return G diff --git a/tests/convert/test_bipartite_graph.py b/tests/convert/test_bipartite_graph.py index 78de5544..9d00f35e 100644 --- a/tests/convert/test_bipartite_graph.py +++ b/tests/convert/test_bipartite_graph.py @@ -83,9 +83,7 @@ def test_from_bipartite_graph( H = xgi.from_bipartite_graph(bipartite_graph4, dual=True) -def test_from_bipartite_graph_to_dihypergraph( - bipartite_dihypergraph1 -): +def test_from_bipartite_graph_to_dihypergraph(bipartite_dihypergraph1): H = xgi.from_bipartite_graph(bipartite_dihypergraph1) assert set(H.nodes) == {1, 2, 3, 4}