Skip to content

Добавлены юнит-тесты для BooksCollector - #9

Open
Lirika07 wants to merge 1 commit into
mainfrom
develop
Open

Lirika07 wants to merge 1 commit into
mainfrom
develop

Conversation

@Lirika07

Copy link
Copy Markdown
Owner

No description provided.

Comment thread tests.py
collector = BooksCollector()
collector.add_new_book('')
collector.add_new_book('Х' * 41)
assert len(collector.get_books_genre()) == 0

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