Skip to content

Comments

спринт 4 тестирование BooksCollector#5

Open
YaAleksandra wants to merge 2 commits intomainfrom
develop
Open

спринт 4 тестирование BooksCollector#5
YaAleksandra wants to merge 2 commits intomainfrom
develop

Conversation

@YaAleksandra
Copy link
Owner

No description provided.

# создаем экземпляр (объект) класса BooksCollector
collector = BooksCollector()
@pytest.fixture
def collector(self):

Choose a reason for hiding this comment

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

Можно улучшить: фикстуру лучше хранить в отдельном модуле

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

# Добавляем книги

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