Skip to content

Commit

Permalink
Remvoe test test_update_node_invalid_peer
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarros committed Sep 21, 2024
1 parent a00d8cc commit 6558745
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions backend/tests/unit/core/hierarchy/test_hierarchy_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,3 @@ async def test_update_node_invalid_hierarchy(db: InfrahubDatabase, hierarchical_
with pytest.raises(ValidationError) as exc:
await rack.children.update(db=db, data=[region])
assert "Not supported to assign some children" in str(exc.value)


async def test_update_node_invalid_peer(db: InfrahubDatabase, hierarchical_location_data):
# city = await NodeManager.get_one(db=db, id=hierarchical_location_data["seattle"].id, raise_on_error=True)
region = await NodeManager.get_one(db=db, id=hierarchical_location_data["europe"].id, raise_on_error=True)
rack = await NodeManager.get_one(db=db, id=hierarchical_location_data["paris-r1"].id, raise_on_error=True)

with pytest.raises(ValidationError) as exc:
await region.children.add(db=db, data=rack)
assert "Not supported to assign a value to parent" in str(exc.value)

0 comments on commit 6558745

Please sign in to comment.