Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion tests/test_body_part.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,20 @@ def test_is_contained(sample_body_part_index: BodyPartIndex):
body_part3 = sample_body_part_index.get_by_id(RIGHT_UTERINE_ADNEXA_ID)

assert body_part1.is_contained(body_part2) == True
assert body_part1.is_contained(body_part3) == False
assert body_part1.is_contained(body_part3) == False

# returns empty array when no children

# returns empty array when no contained ancestors

# returns empty array when no contained ancestors

# returns the correct result (has valid ancestor with radlexId

# returns the correct result (has valid ancestor with BodyPart)

# returns the correct result (no valid ancestor)

# BodyPart with partOf children

# BodyPart with partOf ancestors
4 changes: 4 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# pylint: disable=missing-module-docstring
import pytest

# returns the correct library version