Closed JonOfScience closed 1 year ago
Method created:
def get_parents_of_word(self, word: Word) -> Sequence[Word]:
Tests Created in test_lexicon.py
Test Class:
class TestRetrievingWordParentsShould:
Tests:
def test__return_an_empty_list_for_a_root_word(self):
...
def test__return_all_parents_if_all_are_extant(self):
...
def test__return_only_extant_parents_if_some_have_no_entry(self):
...
Parent User Story: #78
GIVEN a Word with entries for "Translated Word Components" AND the entries relate to other extant Words
WHEN a retrieve parents method is called
THEN the parent objects are returned
Examples:
Tasks: