Skip to content

Добавил тесты и правки в test_pracktic.py - #9

Open
BigDocD21 wants to merge 3 commits into
mainfrom
develop
Open

BigDocD21 wants to merge 3 commits into
mainfrom
develop

Conversation

@BigDocD21

Copy link
Copy Markdown
Owner

No description provided.

Comment thread test_pracktic.py Outdated
books_dict = collector.get_books_genre()
current_names = list(books_dict.keys())

if should_be_added:

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 test_pracktic.py Outdated
assert collector.get_book_genre(book_name) == genre

books_in_genre = collector.get_books_with_specific_genre(genre)
assert book_name in books_in_genre

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 test_pracktic.py Outdated
books_in_other_genre = collector.get_books_with_specific_genre(other_genre)

assert book_name in books_in_genre
assert book_name not in books_in_other_genre

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