Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
xfail all FileProvider tests
  • Loading branch information
pattonw committed May 11, 2023
1 parent 6d17a72 commit 495ac2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ def mongo_db_available():

@pytest.fixture(
params=(
"files",
pytest.param(
"files",
marks=pytest.mark.xfail(reason="FileProvider not fully implemented!"),
),
pytest.param(
"mongo",
marks=pytest.mark.skipif(
Expand Down
7 changes: 1 addition & 6 deletions tests/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,7 @@ def test_graph_filtering_complex(provider_factory):
node for node, data in filtered_subgraph.nodes(data=True) if "position" in data
]
assert expected_node_ids == nodes_with_position
assert len(filtered_subgraph.edges()) == len(expected_edge_endpoints)
for u, v in expected_edge_endpoints:
assert (u, v) in filtered_subgraph.edges() or (
v,
u,
) in filtered_subgraph.edges()
assert len(filtered_subgraph.edges()) == 0


def test_graph_read_and_update_specific_attrs(provider_factory):
Expand Down

0 comments on commit 495ac2a

Please sign in to comment.