Skip to content

QA project#7

Open
Rooontheroof wants to merge 2 commits intomainfrom
develop
Open

QA project#7
Rooontheroof wants to merge 2 commits intomainfrom
develop

Conversation

@Rooontheroof
Copy link
Copy Markdown
Owner

No description provided.

tests.py Outdated
@@ -21,4 +22,86 @@ def test_add_new_book_add_two_books(self):
assert len(collector.get_books_rating()) == 2
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

tests.py Outdated
# чтобы тесты были независимыми в каждом из них создавай отдельный экземпляр класса BooksCollector()


class TestBooksCollector:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Нужно исправить:
В модуле уже есть одноименный класс выше.

tests.py Outdated
assert 'Винни-Пух' in children
assert 'Калигула 18+' not in children

def test_favorites_add_no_duplicates_and_delete(self):
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