Skip to content

Commit b253559

Browse files
authored
Merge pull request #344 from adamnsch/nx-typo
Fix typo in tox.ini
2 parents 206a762 + 2afa2e0 commit b253559

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

graphdatascience/tests/integration/test_nx_loader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def test_undirected_nx(gds: GraphDataScience, undirected_nx_G: nx.Graph) -> None
5656
G.drop()
5757

5858

59+
@pytest.mark.filterwarnings("ignore: GDS Enterprise users can use Apache Arrow")
5960
@pytest.mark.compatible_with(min_inclusive=ServerVersion(2, 1, 0))
6061
def test_undirected_nx_without_Arrow(gds_without_arrow: GraphDataScience, undirected_nx_G: nx.Graph) -> None:
6162
G = gds_without_arrow.graph.networkx.load(undirected_nx_G, GRAPH_NAME)
@@ -92,6 +93,7 @@ def test_directed_nx(gds: GraphDataScience, directed_nx_G: nx.Graph) -> None:
9293
G.drop()
9394

9495

96+
@pytest.mark.filterwarnings("ignore: GDS Enterprise users can use Apache Arrow")
9597
@pytest.mark.compatible_with(min_inclusive=ServerVersion(2, 1, 0))
9698
def test_directed_nx_without_Arrow(gds_without_arrow: GraphDataScience, directed_nx_G: nx.Graph) -> None:
9799
G = gds_without_arrow.graph.networkx.load(directed_nx_G, GRAPH_NAME)

graphdatascience/tests/unit/test_nx_loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def test_parse_inconsistent_rel_props(gds: GraphDataScience) -> None:
111111

112112
assert len(rels) == 1
113113
assert_frame_equal(
114-
rels[0],
114+
rels[0].sort_index(axis=1),
115115
DataFrame(
116116
{
117117
"relationshipType": ["R"] * 2,
@@ -120,7 +120,7 @@ def test_parse_inconsistent_rel_props(gds: GraphDataScience) -> None:
120120
"weight": [0.4, None],
121121
"weight2": [None, 1.4],
122122
}
123-
),
123+
).sort_index(axis=1),
124124
)
125125

126126

requirements/base/networkx.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
networkx >= 2.0, < 3.0
1+
networkx >= 2.0, < 4.0

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ deps =
4040
pyarrow9: pyarrow >= 9.0, < 10.0
4141
pyarrow10: pyarrow >= 10.0, < 11.0
4242
pyarrow11: pyarrow >= 11.0, < 12.0
43-
networkx2: network >= 2.0, < 3.0
44-
networkx3: network >= 3.0, < 4.0
43+
networkx2: networkx >= 2.0, < 3.0
44+
networkx3: networkx >= 3.0, < 4.0
4545
commands =
4646
standard: bash -ec 'pytest graphdatascience/tests --include-enterprise --include-model-store-location -Werror && ruby ./doc/tests/test_docs.rb python3 -n test_enterprise'
4747
encrypted: pytest graphdatascience/tests --encrypted-only -Werror

0 commit comments

Comments
 (0)