Skip to content

Conversation

@Mefite
Copy link
Owner

@Mefite Mefite commented Dec 2, 2025

No description provided.


# проверяем, что добавилось именно две
# словарь books_rating, который нам возвращает метод get_books_rating, имеет длину 2
assert len(collector.get_books_rating()) == 2

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нужно исправить: нет такого метода у тестируемой программы, код проекта должен быть полностью рабочим

def test_get_books_with_specific_genre(self):
collector = BooksCollector()
collector.add_new_book('Остров сокровищ')
collector.set_book_genre('Остров сокровищ', 'Мультфильмы')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно лучше: тут стоит добавлять книги с разными жанрами, чтобы понимать что фильтрация работает корректно

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants