Skip to content

task done#1

Open
sergech9 wants to merge 2 commits intomainfrom
develop
Open

task done#1
sergech9 wants to merge 2 commits intomainfrom
develop

Conversation

@sergech9
Copy link
Owner

No description provided.


@pytest.fixture
def collector():
return BooksCollector() No newline at end of file
Copy link

Choose a reason for hiding this comment

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

Отлично: в каждом тесте создается собственный экземпляр BooksCollector

collector.add_new_book('Бесы')
assert 'Бесы' in collector.get_books_genre()

@pytest.mark.parametrize('book_name', ['', 'B' * 41, 'B' * 42])
Copy link

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