Skip to content

Sprint_4#29

Open
asajevelina-dot wants to merge 3 commits into
yandex-praktikum:mainfrom
asajevelina-dot:develop
Open

Sprint_4#29
asajevelina-dot wants to merge 3 commits into
yandex-praktikum:mainfrom
asajevelina-dot:develop

Conversation

@asajevelina-dot
Copy link
Copy Markdown
Collaborator

Тесты для BooksCollector

@asajevelina-dot asajevelina-dot changed the title Решение проектной работы Sprint_4 May 21, 2026
Comment thread tests.py
collector.set_book_genre("Страшная книга", "Ужасы")
children_books = collector.get_books_for_children()
assert "Детская книга" in children_books
assert "Страшная книга" not in children_books
Copy link
Copy Markdown

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.

2 participants