diff --git a/tests/conftest.py b/tests/conftest.py deleted file mode 100644 index 1d40e94a305f1b1e10567d9eec8b3b3ffef581e3..0000000000000000000000000000000000000000 --- a/tests/conftest.py +++ /dev/null @@ -1,10 +0,0 @@ -import pytest - -from .config import edge_case, get_graph - - -@pytest.fixture -def G_Edge_Case(): - G = get_graph(edge_case) - yield G - del G diff --git a/tests/test_graph.py b/tests/test_graph.py index 42fa225f2595f42de2e25e68d8bb69b03b05c9b9..63196c0b9175635f449b793c2d522babbd8c7c4b 100644 --- a/tests/test_graph.py +++ b/tests/test_graph.py @@ -1,6 +1,7 @@ -import networkx as nx +from .config import get_graph, edge_case -def test_graph_creation(G_Edge_Case: nx.Graph): - assert G_Edge_Case.number_of_nodes() == 3 - assert G_Edge_Case.number_of_edges() == 3 +def test_edge_case(): + G = get_graph(edge_case) + assert G.number_of_nodes() == 3 + assert G.number_of_edges() == 3