def test_length_null(sentences, _bot_brain): bot, pos, lex = _bot_brain reduced_sentences = output_filters.filter_length(sentences, pos) same_sentences = output_filters.filter_length(reduced_sentences, pos) assert len(same_sentences) == len(reduced_sentences)
def test_length(sentences, _bot_brain): bot, pos, lex = _bot_brain reduced_sentences = output_filters.filter_length(sentences, pos) for sentence in reduced_sentences: assert len(sentence.split()) <= 8