-
Notifications
You must be signed in to change notification settings - Fork 0
Sprint_4 #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…чения жанра книги по ее названию.
…ooks проверка получения спискв книг с определённым жанром. И фикстуру заполнения списка книг.
…books проверка получения списка книг с определённым жанром.
…add_negative_input_book_not_added
tests.py
Outdated
| #проверяем, что выводятся книги нужного жанра | ||
| isTrue = True | ||
| for item in books_fantasy: | ||
| if collector_full.books_genre[item] != 'Фантастика': |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
tests.py
Outdated
| isTrue = False | ||
| assert isTrue |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
tests.py
Outdated
| for item in books_for_children: | ||
| if collector_full.books_genre.get(item) == 'Ужасы' or collector_full.books_genre[item] == 'Детективы': | ||
| isTrue = False | ||
| assert isTrue |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| #заполнем коллекцию данными | ||
| books_fantasy = collector_full.get_books_with_specific_genre('Фантастика') | ||
| #проверяем, что выводятся книги нужного жанра | ||
| assert list(filter(lambda x: collector_full.books_genre[x] == 'Фантастика', books_fantasy)) != [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно лучше: данная проверка может оказаться некорректной. Лучше проверять на полное соответствие списка
No description provided.