Skip to content

Sprint_4 - #9

Open
avshushunov wants to merge 2 commits into
mainfrom
develop
Open

Sprint_4#9
avshushunov wants to merge 2 commits into
mainfrom
develop

Conversation

@avshushunov

Copy link
Copy Markdown
Owner

No description provided.

Comment thread tests.py Outdated
# напиши свои тесты ниже
# чтобы тесты были независимыми в каждом из них создавай отдельный экземпляр класса BooksCollector() No newline at end of file
def test_get_list_of_favorites_books_empty(self, collector):
assert collector.get_list_of_favorites_books() == [] No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Нужно исправить: проверять этот метод необходимо по заполненному списку

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Исправлено: добавил тест с получением списка для метода get_list_of_favorites_books. Тест, что избранное пустое по умолчанию, оставил, как отдельную доп. проверку.

Comment thread tests.py Outdated
# напиши свои тесты ниже
# чтобы тесты были независимыми в каждом из них создавай отдельный экземпляр класса BooksCollector() No newline at end of file
def test_get_list_of_favorites_books_empty(self, collector):
assert collector.get_list_of_favorites_books() == [] No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Нужно исправить: отсутствуют тесты на проверку методов get_books_genre и get_book_genre. На каждый метод должен быть отдельный тест, вне зависимости, вызывается он в других тестах или нет

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Исправлено: добавил в 2 теста для get_books_genre и get_book_genre.

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