Skip to content

Conversation

@xq102
Copy link
Owner

@xq102 xq102 commented Sep 28, 2025

No description provided.

def test_add_new_book_add_two_books(self):
# создаем экземпляр (объект) класса BooksCollector
def test_add_new_book_success(self):
collector = BooksCollector()

Choose a reason for hiding this comment

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

Можно лучше: создание объекта BooksCollector можно вынести в фикстуры. Фикстуры следует хранить в файле conftest

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