From 6af7b5bbb461fa239074de1b35321da7325b1311 Mon Sep 17 00:00:00 2001 From: kimia kamrani Date: Tue, 11 Jul 2023 00:05:02 +0330 Subject: [PATCH 1/2] as a TDD desigan, am I write to continure resove these tests? --- tests/test_main.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/test_main.py diff --git a/tests/test_main.py b/tests/test_main.py new file mode 100644 index 0000000..65ed0eb --- /dev/null +++ b/tests/test_main.py @@ -0,0 +1,4 @@ +# pylint: disable=missing-module-docstring +import pytest + +# returns the correct library version \ No newline at end of file From 9836ce67d476383d027a80f1642bfda1b1f6497a Mon Sep 17 00:00:00 2001 From: kimia kamrani Date: Tue, 11 Jul 2023 00:09:44 +0330 Subject: [PATCH 2/2] as a TDD desigan, am I write to continure resove these tests? --- tests/test_body_part.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/test_body_part.py b/tests/test_body_part.py index 7ed6238..1d8c0d9 100644 --- a/tests/test_body_part.py +++ b/tests/test_body_part.py @@ -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 \ No newline at end of file + 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 \ No newline at end of file