Skip to content

Sprint_4 #8

Open
aporguneva wants to merge 1 commit into
mainfrom
develop
Open

Sprint_4 #8
aporguneva wants to merge 1 commit into
mainfrom
develop

Conversation

@aporguneva

Copy link
Copy Markdown
Owner

No description provided.

Comment thread tests.py
#Метод add_new_book
#Добавление книги в словарь
def test_add_new_book_add_one_book(self):
collector = BooksCollector()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Можно улучшить: общее для всех тестов предусловие можно вынести в фикстуру

Comment thread tests.py
collector.set_book_genre("Буратино", "Фантастика")

books = collector.get_books_with_specific_genre("Фантастика")
assert set(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